RaptorGameplayContainers
Finds or creates the parent for new gameplay objects.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
With a model, gameplay objects go into the model's Gameplay container. Without one, they go under the open prefab's root, or else under a root scene object with the caller's name. Missing containers are created in the current Undo group.
public static class RaptorGameplayContainersMethods
Resolve
public static Transform Resolve(RaptorModel model, Scene scene, string sceneRootName)Returns the parent for a new gameplay object, creating it in the current Undo group when missing.
| Parameter | Type | Description |
|---|---|---|
model | RaptorModel | The model, or null. |
scene | Scene | The scene that holds the root object when there is no model. |
sceneRootName | string | The root scene object's name. |
Returns: The parent.
Related types
- RaptorModel: The root of a RAPTOR model and its output container.