Get RAPTOR

RaptorSuiteContext

Reads the current editor state without keeping references to the selection or scene objects.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0
public sealed class RaptorSuiteContext

Constructors

RaptorSuiteContext

public RaptorSuiteContext(Action repaint, Action frameSelection, Func<bool> isEditingAllowed)

Created by the Suite window.

ParameterTypeDescription
repaintActionRepaints the window.
frameSelectionActionFrames the selection.
isEditingAllowedFunc<bool>Returns true while editing is allowed.

Properties

ActiveScene

public Scene ActiveScene { get; }

The active scene.

AuthoringSelection

public RaptorSuiteSelectionContext AuthoringSelection { get; }

The selection as RAPTOR elements.

FrameSelection

public Action FrameSelection { get; }

Frames the selection in the 3D view.

GameObjects

public GameObject[] GameObjects { get; }

The selected GameObjects.

IsEditingAllowed

public bool IsEditingAllowed { get; }

Whether editing is allowed. False in Play mode or in a read-only stage.

Repaint

public Action Repaint { get; }

Repaints the window.

Selection

public UnityEngine.Object[] Selection { get; }

The selected objects.