Best way to generate a sphere at runtime using ECS.

I was wondering what could be the best way to create sphere at runtime using ECS.
should i create sphere mesh and render it with renderMesh or is there any other way?
Or can i utilise any inbuilt unity class or library to create Sphere with ECS?
I would really thank any reference example

You can use simply prefab mesh of sphere, from standard sphere GameObject, or imported obj, fbx.

Otherwise, you want to generate vertices, normals, mesh and UV data.

The point is i want to implement it in pure ECS and Do you think using GameObject reference or Prefab reference is goog approach while working in pure ECS?

Conversion workflow is recommended way. And it using GO as data holder and editor presentation for your entities which will converts at runtime.

1 Like