Instantiate
Instantiate(Object, Vector3, Quaternion)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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.