Hey
Iv been learning DOTS and ECS API for the last few weeks.
Using v1.0.16 with unity v2022 LTS, I cant find a method to convert prefabs gameobjects on run time for a standalone version.
EntitySceneReferences and EntityPrefabReference both are un-usable for a standalone build for 2 reasons I found and tested:
- converting directly gameobject or using sceneAsset are unityEditor only, standalone version (aka compiled game) cant access and compile it using those.
- from testing using GUID (aka hash128) (for both scene loading and prefab), on editor all work but on standalone the GUID wasn't leading anywhere and basically the code cried about nothing being there. I guess its because the scene/prefab wasn't part of the scene in the run.
Im really out of ideas at this point.
things to consider:
- I dont know which prefabs are going to be used at start or set them predate - meaning I cant use bake.
- I cant add their component manually as they are complex and each prefab has it own story.
- adding the component as object doesn't help to solve the problem.
Really hope anyone can share more info about it, iv looked everywhere to find a good solution and none came up.