RaptorSuiteContext
Reads the current editor state without keeping references to the selection or scene objects.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
public sealed class RaptorSuiteContextConstructors
RaptorSuiteContext
public RaptorSuiteContext(Action repaint, Action frameSelection, Func<bool> isEditingAllowed)Created by the Suite window.
| Parameter | Type | Description |
|---|---|---|
repaint | Action | Repaints the window. |
frameSelection | Action | Frames the selection. |
isEditingAllowed | Func<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.
Related types
- RaptorSuiteSelectionContext: A read-only snapshot of the Suite's selection.