create a prefab at runtime unity code example
Example: unity how to create a prefab
To create a Prefab Asset, drag a GameObject
from the Hierarchy window into the Project window.
To create a Prefab Asset, drag a GameObject
from the Hierarchy window into the Project window.