I have a floor that I convert to an entity and add a physics body and physics shape. In the entity debugger the PhysicsCollider is there. I have a capsule that I have setup the same that I turned into a prefab. In the entity debugger the PhysicsCollider is not there. Everything else that is supposed to be there, is there, just not the Collider. If I don’t make it a prefab, it works just fine.
I am getting the following error, it is pointing to the var prefab line. I am assuming there must be something wrong in the prefab? Is there something special I need to add to the prefab to get it to work? I am probably overlooking something very simple.
ArgumentNullException: A valid BlobAssetStore must be passed to construct a BlobAssetComputationContext
Parameter name: blobAssetStore
var settings = GameObjectConversionSettings.FromWorld(World.DefaultGameObjectInjectionWorld, null);
var prefab = GameObjectConversionUtility.ConvertGameObjectHierarchy(Prefab, settings);
var entityManager = World.DefaultGameObjectInjectionWorld.EntityManager;
//create player from prefab
var instance = entityManager.Instantiate(prefab);
Thanks