Instantiate

Instantiate(Object, Vector3, Quaternion)

public static Object Instantiate(Object original, Vector3 position, Quaternion rotation) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, Vector3, Quaternion, Transform)

public static Object Instantiate(Object original, Vector3 position, Quaternion rotation, Transform parent) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation
parent Parent Transform

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, Vector3, Quaternion, Transform, Space)

public static Object Instantiate(Object original, Vector3 position, Quaternion rotation, Transform parent, Space space) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation
parent Parent Transform
space Coordinate system

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, Vector3, Quaternion, Transform, Space, LifeTimeFlags, float)

public static Object Instantiate(Object original, Vector3 position, Quaternion rotation, Transform parent, Space space, LifeTimeFlags lifeTimeFlags, float lifeDuration) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation
parent Parent Transform
space Coordinate system
lifeTimeFlags Lifetime of pooled objects
lifeDuration Time to live of pooled objects

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object)

public static Object Instantiate(Object original) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, LifeTimeFlags, float)

public static Object Instantiate(Object original, LifeTimeFlags lifeTimeFlags, float lifeDuration) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
lifeTimeFlags Lifetime of pooled objects
lifeDuration Time to live of pooled objects

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, Transform)

public static Object Instantiate(Object original, Transform parent) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
parent Parent Transform

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, Transform, bool)

public static Object Instantiate(Object original, Transform parent, bool instantiateInWorldSpace) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
parent Parent Transform
instantiateInWorldSpace If when assigning the parent the original world position should be maintained.

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate(Object, Transform, bool, LifeTimeFlags, float)

public static Object Instantiate(Object original, Transform parent, bool instantiateInWorldSpace, LifeTimeFlags lifeTimeFlags, float lifeDuration) ;

Description

Instantiate an object.

Parameters

Parameter Name Description
original Original object
parent Parent Transform
instantiateInWorldSpace If when assigning the parent the original world position should be maintained.
lifeTimeFlags Lifetime of pooled objects
lifeDuration Time to live of pooled objects

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T)

public static T Instantiate<T>(T original) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, LifeTimeFlags, float)

public static T Instantiate<T>(T original, LifeTimeFlags lifeTimeFlags, float lifeDuration) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
lifeTimeFlags Lifetime of pooled objects
lifeDuration Time to live of pooled objects

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, Vector3, Quaternion)

public static T Instantiate<T>(T original, Vector3 position, Quaternion rotation) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, Vector3, Quaternion, Transform)

public static T Instantiate<T>(T original, Vector3 position, Quaternion rotation, Transform parent) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation
parent Parent Transform

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, Vector3, Quaternion, Transform, LifeTimeFlags, float)

public static T Instantiate<T>(T original, Vector3 position, Quaternion rotation, Transform parent, LifeTimeFlags lifeTimeFlags, float lifeDuration) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
position Position
rotation Rotation
parent Parent Transform
lifeTimeFlags Lifetime of pooled objects
lifeDuration Time to live of pooled objects

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, Transform)

public static T Instantiate<T>(T original, Transform parent) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
parent Parent Transform

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, Transform, bool)

public static T Instantiate<T>(T original, Transform parent, bool instantiateInWorldSpace) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
parent Parent Transform
instantiateInWorldSpace If when assigning the parent the original world position should be maintained.

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.

Instantiate<T>(T, Transform, bool, LifeTimeFlags, float)

public static T Instantiate<T>(T original, Transform parent, bool instantiateInWorldSpace, LifeTimeFlags lifeTimeFlags, float lifeDuration) ;

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type

Parameters

Parameter Name Description
original Original object
parent Parent Transform
instantiateInWorldSpace If when assigning the parent the original world position should be maintained.
lifeTimeFlags Lifetime of pooled objects
lifeDuration Time to live of pooled objects

Returns

Instantiated object

Remarks

If there is a pooled object, resume that object.
If there is no pool, it is newly instantiated by Object.Instantiate.