Create object instance from prefab.
InstantiatePrefab( prefab, IObjectFactoryContext context )
function InstantiatePrefab( prefab : , context : IObjectFactoryContext ) :
- prefab ( )
- 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 ValueObject instance or null if object could not be created.
Important: The instantiated object must NOT have a parent object.