I've written a script which will automatically generate a Mesh, assign a MeshFilter, MeshRenderer, BoxCollider, and RigidBody.
This script is meant as a tool to rapidly create a certain class of objects (in this case, dice). I don't want them to actually generate at runtime.
Is there a way to convert the GameObject to a Prefab with all of its different generated properties so that I can simply drop them into my game?
Just trying to drag it into the Assets causes it to lose its Mesh. Also to note, I have it so I can generate the Mesh via the Inspector in a ContextMenu, which works well.