Why are Translation, Rotation, and RenderMeshProxy depreciated in preview 30? What are the replacements?
I believe they are using GameObjectConversionSystems now. As long as a GameObject has the proper MonoBehaviour components, they should get automatically converted to the proper IComponentData components. For example, any GameObject with a Transform component will get picked up by the TransformConversion system, which will take care of converting the Transform component to the Translation, Rotation, Scale, etc components.
Add “Convert to Entity” to an GameObject and the GO inclusive all children are converted to entity automatically.
Just started testing with it. Looks like a great new feature.
Read this thread for guidance.
Wait. Does this mean Translation and Rotation components themselves are deprecated? What about entities created by code?
No, just the proxies. They are moving away from the old Proxy like system (the wrappers) to a Conversion system.
The data structs that go on the entity are not deprecated. Especially since Mike Acton just did a talk on it at GDC
When the following is called, the Translation and Rotation components are automatically added. There is no longer any need to added them to the original prefab or to the entity.
Entity prefabEntity = GameObjectConversionUtility.ConvertGameObjectHierarchy(prefab.gameObject, World.Active);
RenderMesh is also automatically added