unity how to add a prefab through script 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.