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)

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, 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<T>(T)

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

Description

Instantiate an object.

Type Parameters

Type Parameter Name Description Type Constraints
T Object type
  • 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<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
  • 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<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
  • 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<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
  • 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<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
  • 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.