Struct InstantiationParameters
Class that contains properties to apply to instantiated objects.
Inherited Members
Namespace: UnityEngine .ResourceManagement .ResourceProviders
Assembly: Unity.ResourceManager.dll
Syntax
public struct InstantiationParameters
Constructors
Name | Description |
---|---|
Instantiation |
Create a new InstantationParameters class that will set the parent transform and use the prefab transform. |
Instantiation |
Create a new InstantationParameters class that will set the position, rotation, and Transform parent of the instance. |
Properties
Name | Description |
---|---|
Instantiate |
When setting the parent Transform, this sets whether to preserve instance transform relative to world space or relative to the parent. |
Parent | Transform to set as the parent of the instantiated object. |
Position | Position in world space to instantiate object. |
Rotation | Rotation in world space to instantiate object. |
Set |
Flag to tell the IInstanceProvider whether to set the position and rotation on new instances. |
Methods
Name | Description |
---|---|
Instantiate<TObject>(TObject) | Instantiate an object with the parameters of this object. |