kingBook

导航

2021年4月7日 #

Unity GameObject.Find 应注意的问题

摘要: public static GameObject Find (string name); 假设现在有游戏对象 Ball ,在场景的层次结构为: Level/Content/Ball。 在编辑器里设置 Ball 为不激活,此时 GameObject.Find("Ball"); // null 找不到对 阅读全文

posted @ 2021-04-07 10:50 kingBook 阅读(187) 评论(0) 推荐(0) 编辑