环境:
unity 2023.2.15f1c1
entities 1.0.16
1.新建工程 选3d(urp)模板
2.导入插件entities
3.打开场景,新建sub scene
4.在subscene中添加一个GameObject
运行项目,log日志出现
Leak Detected : Persistent allocates 1 individual allocations. To find out more please enable 'Preferences > Jobs > Leak Detection Level > Enabled With Stack Trace' and reproduce the leak again.
本以为是第一运行有点异常,重新启动测试几次后,每次都出现。
啥都还没干,就出这玩意???
第一用ECS,还真不容易!
网上找了很久没有找到方法,后来几次尝试修改editor设置,不再出现Leak Detected。
打开Player setting ,找到Editor项,修改Enter Play Mode Options 属性
默认没有勾选上的,把它勾选上,不管怎么重启都不会再出现Leak Detected日志