Creating objects at runtime

Hi all,

I am newb here and i have a newb question i guess. How i can create a new instance of some object at runtime ?

thx!!

2 ways:

  1. You create a new game object and add the related components to it.

  2. You create a prefab and put it into the resources folder (you first have to create) and use Instantiate(Resources.Load(“Prefabname”, …), … )

WOW ! what a fast response like 1 minut. Thanks a lot :slight_smile: