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!!
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:
You create a new game object and add the related components to it.
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