无效实体 | 该实体不再存在

huangapple go评论56阅读模式
英文:

Invalid Entity | The entity does not exist anymore

问题

我对ECS和DOTS非常新手,但最终还是想尝试一下。我很快遇到了一个问题,在线上找不到任何解决方法。
当我在Subscene中创建一个空的游戏对象并想在游戏视图中查看它时,我只得到了以下结果:

无效实体 | 该实体不再存在

到目前为止,我只有一个空的Unity 2022.2.12 URP 3D项目,我的场景中导入了最新的com.unity.entities.graphics,还有一个名为“EntityScene”的SubScene,里面有一个空的游戏对象。

URP-HighFidelity / Performant-Renderer设置:渲染路径设置为Forward+

英文:

I am Super new to ECS and DOTS, but wanted to now finally give it a shot. I very quickly ran into a problem where I cannot find anything online.
When I create an Empty Game Object in a Subscene and want to look at it in Game View, I just get the following result:

无效实体 | 该实体不再存在

So far all I have is an Empty Unity 2022.2.12 URP 3D project with the newest com.unity.entities.graphics import in my Scene, a SubScene "EntityScene" with an Empty Game Object.

URP-HighFidelity / Performant-Renderer Settings: Render Path to Forward+

答案1

得分: 1

Empty GameObjects, with only Transform and without any child objects in a SubScene, do not bake to Entities by default in Entities 1.0. According to your screenshot, the Inspector is in forced Runtime mode - a fully filled orange circle (underscore line means it's force-selected to this state).

You should pick automatic or Mixed Authoring because empty GameObjects have no Runtime representation (see my first sentence).

英文:

Empty GameObjects, with only Transform and without any childs in SubScene not baking to Entities by default in Entities 1.0. According to your screenshot Inspector is in forced Runtime mode - fully filled orange circle (underscore line means it force selected to this state)

Your Inspector in force runtime

You should pick automatic or Mixed\Authoring because empty GameOobject have no Runtime representation (see my first sentense).

Should be

答案2

得分: 0

你需要切换检视器标签到 Runtime 模式。

英文:

You need to switch the Inspector tab to Runtime mode:

无效实体 | 该实体不再存在

> screenshot taken from Unity 2022.2.19 / com.unity.entities 1.0.0-pre.65

huangapple
  • 本文由 发表于 2023年5月14日 19:55:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76247354.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定