Used to pass spawn parameters to various object creation/initialization methods.
More...
|
static SpawnParams | At (Transform transform, bool parented=false, bool includeScene=false) |
| Spawn at a given transform (copy position and rotation). More...
|
|
Used to pass spawn parameters to various object creation/initialization methods.
◆ At()
static SpawnParams Infohazard.Core.SpawnParams.At |
( |
Transform |
transform, |
|
|
bool |
parented = false , |
|
|
bool |
includeScene = false |
|
) |
| |
|
static |
Spawn at a given transform (copy position and rotation).
- Parameters
-
transform | The transform to spawn at. |
parented | If true, parent spawned object to given transform. |
includeScene | If true and parented is false, move to given transform's scene. |
- Returns
- Resulting SpawnParams.
◆ Default
Default spawn params (no transform, parent, scene, or instance ID).
◆ InWorldSpace
bool Infohazard.Core.SpawnParams.InWorldSpace |
If true, given position/rotation/scale are considered world space. If false, they are considered in the space of the parent.
◆ Parent
Transform Infohazard.Core.SpawnParams.Parent |
Parent to attach the object to. If null, no parent.
◆ PersistedInstanceID
ulong Infohazard.Core.SpawnParams.PersistedInstanceID |
◆ Position
Vector3? Infohazard.Core.SpawnParams.Position |
Position to spawn at (if null, do not set position).
◆ Rotation
Quaternion? Infohazard.Core.SpawnParams.Rotation |
Position to spawn at (if null, do not set rotation).
◆ Scale
Vector3? Infohazard.Core.SpawnParams.Scale |
Scale to spawn at (if null, do not set the scale).
◆ Scene
Scene? Infohazard.Core.SpawnParams.Scene |
Scene to spawn in, if Parent is null.
The documentation for this struct was generated from the following file:
- Runtime/Pooling/SpawnParams.cs