struct in UnityEngine
/
Implemented in:UnityEngine.CoreModule
Suggest a change Success!Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close Submission failedFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* DescriptionParameters for Object.Instantiate and Object.InstantiateAsync.
This structure is used in Object.Instantiate and Object.InstantiateAsync in order to provide maximum flexibility in the parameters you provide. It has the added benefit of unifying the meaning of the parameters in both methods.
The behaviour of the different parameter combinations is:
worldSpace
: The instance will have the same world position and rotation as the original.worldSpace
, method takes position and rotation: Sets those values to the transform of the instance in world space.parent
: The instance will be a child of parent
and will have the same local position and rotation as the original.parent
and worldSpace
: The instance will be a child of parent
and will have the same world position and rotation as the original.parent
, method takes position and rotation: The instance will be a child of parent
and the values will be set as local.parent
and worldSpace
, method takes position and rotation: The instance will be a child of parent
and the values will be set as world space.scene
and any combination of position, rotation and worldSpace
: The same behaviour as that combination, but the instance will be in scene
.scene
and parent
: scene
will be ignored because child objects are always in the same scene as the parent
.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4