I’m trying out creating entities through the sub-scene approach rather than the convert-from entity. I have a monobehaviour I wanted to inject in hybrid mode like i did previously, however it seems like this functionality is not supported in the sub scene approach? Am I missing something?
Try this one.It’s not injected. But could be better than Injected.
the key is conversionSystem.AddHybridComponent(comp);
You may need to remove [NaughtyAttributes.ReorderableList] and the
if (comp is SkinnedMeshRenderer){…}
those parts need some other referenced source
6361641–707922–HybridComponent.cs (5.37 KB)
Tried that out and the system can now see the hybrid component. However the script I have has references to other unity objects that are stored as either children or just other monobehaviours on the same gameobject. These are now coming up null. Is there any way to keep these references?
Try this one
I don’t think so. I’m doing that all manually…
You can convert all child to entities. and use GetPrimeryEntity to link them.
Hybrid component is designed in favor of ECS instead of Go/Mono.