Get RAPTOR

RaptorGameplayContainers

Finds or creates the parent for new gameplay objects.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, 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 RaptorGameplayContainers

Methods

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.

ParameterTypeDescription
modelRaptorModelThe model, or null.
sceneSceneThe scene that holds the root object when there is no model.
sceneRootNamestringThe root scene object's name.

Returns: The parent.

  • RaptorModel: The root of a RAPTOR model and its output container.