摘要:
using UnityEngine; using UnityEngine.Video; using UnityEngine.UI; public class PlayVideoOnUGUI : MonoBehaviour { //定义参数获取VideoPlayer组件和RawImage组件 priv 阅读全文
摘要:
Unity发布出来后,找到Build下边的UnityLoader.js,记事本打开, 打开网页提示:Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue 阅读全文
摘要:
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class KeyCodeDemo : MonoBeha 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cam : MonoBehaviour { void Start() { } void Update() { if 阅读全文
摘要:
阅读全文
摘要:
先把障碍物摆放好 选中障碍物,点static -倒第三个 物体添加NavMeshAgent组建 点window-AI-navugation--bake--bake。 移动躲避障碍物 void Update() { GetComponent<NavMeshAgent>().SetDestination 阅读全文
摘要:
解除预制体问题:(这个例子是解除游戏中的Canvas与Asset中的预制体的关系) if( PrefabUtility.IsAnyPrefabInstanceRoot(GameObject.Find("Canvas"))) PrefabUtility.UnpackPrefabInstance(Gam 阅读全文