Trying to use Unity ECS DOTS, but getting following message in a console:
“No SRP present, no compute shader support, or running with -nographics. Hybrid Renderer disabled”
Unity version: 2021.3.9f1 LTS
When creating an entity with mesh from the code, I see no cube. But the Entity with valid components is present:
public class Creator : MonoBehaviour
{
public Mesh mesh;
public Material material;
private void Start()
{
EntityManager entityManager = World.DefaultGameObjectInjectionWorld.EntityManager;
EntityArchetype archetype = entityManager.CreateArchetype(
typeof(Transform),
typeof(Rotation),
typeof(RenderMesh),
typeof(RenderBounds),
typeof(LocalToWorld)
);
Entity entity = entityManager.CreateEntity(archetype);
entityManager.AddComponentData(entity, new Translation()
{
Value = new float3(2, 0, 4)
});
entityManager.SetSharedComponentData(entity, new RenderMesh()
{
mesh = mesh,
material = material
});
}
}
Yes mesh and material variables are set correctly.
I also tried to create a simple scriptable render pipeline asset and assign it in Graphics settings via this tutorial, but no help. Any idea what could be the issue?
Package versions: