摘要: Unity中GameObj克隆物体的三种方法,上代码 阅读全文
posted @ 2022-01-26 08:46 多见多闻 阅读(975) 评论(0) 推荐(0)
摘要: 创建一个脚本,输入下面的代码。脚本不需要添加到任何物体上,globle变量可以跨场景全局调用。 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Globle { p 阅读全文
posted @ 2022-01-26 07:53 多见多闻 阅读(943) 评论(0) 推荐(0)
摘要: 1、发现未激活的组件,需要transform.Find("menu").gameObject,不能用gameObject.find("menu"); 阅读全文
posted @ 2022-01-26 07:40 多见多闻 阅读(52) 评论(0) 推荐(0)