I just followed the getting started page to make a basic box and a sphere physics objects in my scene.
When i add “convert to entity” component to them, they disappear from the scene on play and the game pauses as if it error’d but i get no errors or any logs in console… just a game object called debug draw component which has nothing on it other than a transform.
Am i missing something here? Why does this happen ?
After conversion, objects move from gameobject scene view to entity world, it’s normal for the converted items to get removed from the scene when you hit the play as that’s literally what the convert to entity script does for the original gameobject by default after it’s done creating the entity counterpart.
As for the pause, that I have no clue about. I recommend checking the setups on UnityPhysicsExamples @ GitHub - Unity-Technologies/EntityComponentSystemSamples. Also make sure you actually have Physics Step script setup on your scene as well.
The whole conversion workflow is temporary afaik. There’s no ECS world editor right now so we need some way to get things easier to the ECS side, hence the conversion tools exist.
If you need something polished and production ready, just keep using gameobjects and look at DOTS after few years Their official stance is that DOTS is somewhat production ready in 2022 according to their DOTS roadmap talk.
@TheCelt I had exactly the same problem when I started to use the new physics system this morning. Turns out you need several packages installed in your project for this all to work, i.e. Entities, Mathematics and most importantly Hybrid Renderer which handles the drawing of meshes using ECS.
The Unity Physics Getting Started page seems to be missing some important prerequisites. When you install the Unity Physics package, it also installs Entities, Jobs, Burst and Mathematics, but not the Hybrid Renderer package.
Installing the latest Hybrid Renderer 0.5.0 results in all kinds of errors. Currently it looks like you need to install Hybrid Renderer <= 0.4.2 if you want compatibility with Unity Physics 0.3.2
Just to make it clear, Hybrid Renderer is NOT required by Unity Physics. I have one project where I use Unity Physics but don’t need or want hybrid renderer at all. You only need Hybrid Renderer if you want to render meshes on DOTS side, it has nothing to do with physics.
Also pretty sure I’ve had latest physics, hybrid renderer and entities running on same project here, sometimes it’s bit pain to get going because older packages tend to have older version requirements and Package Manager isn’t always doing so great at resolving these (you may need to manually install some of the dependencies to newer version).
The meshes disappeared for me too. I installed the Hybrid Renderer package and it was fixed. Whether hybrid renderer pulled in a dependency that was required by Unity Physics I don’t know as I haven’t checked yet.
Im using Unity 2021.2.0b16.3733