2015年6月28日

unity, remove a scene from build settings

摘要: 把scene添加到build settings的scenes in build列表里以后,如果想删除,没有菜单可用,但选中按delete即可。参考:http://answers.unity3d.com/questions/393071/how-do-i-remove-a-scene-from-a-b... 阅读全文

posted @ 2015-06-28 16:04 wantnon 阅读(716) 评论(0) 推荐(0)

unity, read text file

摘要: usingSystem.IO; //testreadtxt//Resources.Load(...)loadsanassetstoredatpathinaResourcesfolder.//ref:http://docs.unity3d.com/Manual/class-TextA... 阅读全文

posted @ 2015-06-28 13:12 wantnon 阅读(840) 评论(0) 推荐(0)

unity, 不要试图用rigidbody.Sleep()停止rigidbody

摘要: 如果想让rigidbody pause,用rigidbody.Sleep()是完全错误的办法。因为有很多情况都可能使一个处在sleep的rigidbody唤醒,所以调用rigidbody.Sleep()确实可以确保rigidbody至少停止一帧,但是连让它停止两帧都确保不了。所以如果想停止一个rig... 阅读全文

posted @ 2015-06-28 02:12 wantnon 阅读(1654) 评论(0) 推荐(0)

导航