Before 36.00 I made a script that creates a root entity and it adds child entities with mesh_components to it, this worked well before 36.00 but after the update the meshes are invisible and the collision is buggy
OnBeginSimulation():void =
(super:)OnBeginSimulation()
TestRoot := entity{}
Entity.AddEntities(array{ TestRoot })
NewEntity := Entities.āAny entity with a mesh_component hereā{}
TestRoot.AddEntities(array{ NewEntity })
Expected Result
The meshes should be visible and collision shouldnt be buggy
Observed Result
After spawning it the mesh wont be visible and the collision will be buggy,
I also noticed printing the TransformComponent.GlobalTransform.Translation causes the game to end with a network error which worked fine before the beta
That was only a typo I made while renaming the variables so they can be understood easier but in the original code I already put the Entity := NewEntity, the issue is still there
I also did some testing with a fresh version of the code to make sure its not caused by something else, but its still the same issue, also it was working fine before 36.00
I have a similar bug in my map. Instead of spawning an entity, Iām spawning a prop using SpawnProp and referencing a prop asset, but the prop is not visible and also has weird collision. Maybe itās related. I also tested it in a different map, and the prop was visible there.
A workaround I found is to create a root component that adds the children, this approach also has issues with the collision of the entity, it also stops working when the spawned prefab has been placed in the editor already