Unity
文章平均质量分 57
敲代码的菠菠萝
玉树临风美少年,揽镜自顾夜不眠。
展开
-
【Unity3D】【UI】Cannot restructure Prefab instance.
触发原因未知,猜测是策划把别的预设A挪了一个改了个名字成了预设B。想要改动预设B中的组件产生了一下报错。Cannot restructure Prefab instance.Children of a Prefab instance cannot be deleted or moved,and components cannot be reordered.You can open the Prefab in Prefab Mode to restructure the Prefab Asset原创 2022-03-29 17:52:00 · 6762 阅读 · 1 评论 -
Unity5.4.x升级到Unity2019遇到的坑-System.MissingMethodException
System.Reflection.BindingFlagsReadSelectedTable Error = System.MissingMethodException: TABLE.xxx.rows Due to: Attempted to access a missing member. at System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, Sys.原创 2021-12-16 16:33:43 · 1071 阅读 · 0 评论 -
Unity3D 获取资源运行时内存和硬盘大小
Unity3D ????获取资源运行时内存和硬盘大小????内存使用Profiler可以查看某个资源的内存占用情况,但是必须启动游戏,并且待查看的资源已经载入游戏中。我希望的是不启动游戏,也能看到它的内存好做统计。????硬盘由于unity中的资源压缩格式记录在meta中所以,在文件夹中看到的资源大小是不正确的。打开unity需要选择一个资源,比如Texture、然后在右侧Inspector面板最下面可以看见它真实的硬盘占用。这个数据我也希望那个可以脚本取到,这样我好做统计工具。在Project视原创 2021-09-26 14:04:04 · 2166 阅读 · 0 评论