Rotorz Tile System Icon
Rotorz Tile System for Unity
API Reference
Available on the Unity Asset Store

InstantiatePrefab Method

Create object instance from prefab.
GameObject InstantiatePrefab(
	GameObject prefab,
	IObjectFactoryContext context
function InstantiatePrefab(
	prefab : GameObject,
	context : IObjectFactoryContext
) : GameObject


prefab (GameObject)
The prefab.
context (IObjectFactoryContext)
An object describing the context of the prefab that is being instantiated. The context object is always specified, though contained members may be null.

Return Value

Object instance or null if object could not be created.


Important: The instantiated object must NOT have a parent object.

See Also