摘要: using UnityEngine; using UnityEngine.Video; using UnityEngine.UI; public class PlayVideoOnUGUI : MonoBehaviour { //定义参数获取VideoPlayer组件和RawImage组件 priv 阅读全文
posted @ 2021-12-15 20:22 哎呦不能错喔 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Unity发布出来后,找到Build下边的UnityLoader.js,记事本打开, 打开网页提示:Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue 阅读全文
posted @ 2020-08-28 17:19 哎呦不能错喔 阅读(127) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class KeyCodeDemo : MonoBeha 阅读全文
posted @ 2020-08-11 16:22 哎呦不能错喔 阅读(99) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cam : MonoBehaviour { void Start() { } void Update() { if 阅读全文
posted @ 2020-05-11 14:27 哎呦不能错喔 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-25 10:18 哎呦不能错喔 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 先把障碍物摆放好 选中障碍物,点static -倒第三个 物体添加NavMeshAgent组建 点window-AI-navugation--bake--bake。 移动躲避障碍物 void Update() { GetComponent<NavMeshAgent>().SetDestination 阅读全文
posted @ 2020-03-20 11:28 哎呦不能错喔 阅读(94) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-07 09:46 哎呦不能错喔 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-03 09:52 哎呦不能错喔 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 解除预制体问题:(这个例子是解除游戏中的Canvas与Asset中的预制体的关系) if( PrefabUtility.IsAnyPrefabInstanceRoot(GameObject.Find("Canvas"))) PrefabUtility.UnpackPrefabInstance(Gam 阅读全文
posted @ 2020-02-28 14:43 哎呦不能错喔 阅读(691) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-14 14:33 哎呦不能错喔 阅读(0) 评论(0) 推荐(0) 编辑