![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
游戏编程
文章平均质量分 93
枫闲言
言必行 行必果
展开
-
unity插件ml-agent的安装和使用
感觉机器学习将占领游戏AI的趋势和可能性。Unity Machine Learning Agents (ML-Agents) 是一款开源的 Unity 插件, 使得我们得以在游戏环境和模拟环境中训练智能 agents。它可以使用 reinforcement learning(强化学习)、imitation learning(模仿学习)、neuroevolution(神经进化)或其他机器学习方...原创 2019-11-12 18:03:34 · 1857 阅读 · 0 评论 -
"SetDestination" can only be called on an active agent that has been placed on a NavMesh
unity报错:"SetDestination" can only be called on an active agent that has been placed on a NavMesh.UnityEngine.AI.NavMeshAgent:set_destination(Vector3)Enemy.<enemyPatrol>d__5:MoveNext() (at Asse...原创 2019-11-01 14:10:13 · 1332 阅读 · 1 评论 -
Unity 旧版本的animation动画转化为高版本的animator动画
在根据本地路径找到项目中的想要转化的fbx原文件,把fbx原文件重新导入到项目中。原创 2019-10-18 08:59:57 · 1712 阅读 · 0 评论 -
球球冒险(cocos个人开发)
这是我刚在学校学习结束cocos课程编写一个小的cocos2d小游戏。计划是有三个模块:闯关模式、极速模式、无尽模式,设想的无尽模式并没有编写完成。在这里为学习cocos2d的小伙伴提供源码,希望通过我设计的小游戏对你的学习有所帮助。在这里和大家分享下!!!游戏源码下载点击这里...原创 2019-02-24 16:59:23 · 502 阅读 · 0 评论 -
寻找宝石(cocos2d个人开发)
这是我自主编写的基础游戏源码,用作了我当时学习结束cocos这门课程时,用来期末答辩的。适合刚入门的cocos的人士,下载学习,每段代码后有详细的注释。在这里和大家分享下!!!游戏源码在下边下载学习!!! 下载点击这里 ...原创 2019-02-24 17:03:39 · 367 阅读 · 1 评论 -
Unity3D分离子物体解除父子关系/也可实现对子物体的删除
关于解除父子关系首先看下官方给出的讲解代码。using UnityEngine;using System.Collections;public class example : MonoBehaviour { public void Awake() { transform.DetachChildren();//解除父子关系 Destroy(gameObject);//清除gam...原创 2019-03-04 21:49:31 · 13423 阅读 · 2 评论 -
C#产生随机数(成对出现的无序随机数)
首先看这段代码 private ArrayList CreateRandomDoublePlayCarsd() { ArrayList a1 = new ArrayList(); //产生10个随机数1-9之间的 for (int i = 0; i < 10; i++) {...原创 2019-02-25 22:33:28 · 501 阅读 · 0 评论 -
Unity-时钟的实现
这里只提供源码,场景布局的话,简单的摆放一下就行了源码如下:using System.Collections;using System.Collections.Generic;using UnityEngine;//using UnityEngine.UI;using System;public class test : MonoBehaviour { // Use...原创 2019-03-11 17:36:49 · 1325 阅读 · 0 评论 -
Unity中如何创建摇杆/控制物体移动
实现功能:点击一定范围内的屏幕,以点击点为中心生成一个摇杆,移动摇杆可以控制物体的移动。ui布局比较简单,Limit-yaogan决定摇杆的活动范围yaoganDI大圈yaogan小圈摇杆脚本部分的:需要引用三个拖拽的接口,用来达到摇杆的效果。IPointerDownHandler,IDragHandler,IPointerUpHandlerusing Sys...原创 2019-09-08 19:48:58 · 1588 阅读 · 0 评论