API Referenceglobal
public sealed class Editor.EditorEvent.ShowContextMenuEvent
Event args for `Editor.EditorEvent.ISceneView.ShowContextMenu(Editor.EditorEvent.ShowContextMenuEvent)` events.
Constructors
Showing 1 constructors
public ShowContextMenuEvent(Editor.SceneEditorSession Session, Editor.Menu Menu, Ray CursorRay, System.Nullable`1<Sandbox.SceneTraceResult> Trace)
No results match this filter.
Methods
Showing 2 methods
public Editor.EditorEvent.ShowContextMenuEvent <Clone>$()
public void Deconstruct(Editor.SceneEditorSession Session, Editor.Menu Menu, Ray CursorRay, System.Nullable`1<Sandbox.SceneTraceResult> Trace)
No results match this filter.
Properties
Showing 4 properties
public Ray Editor.EditorEvent.ShowContextMenuEvent.CursorRay { get; set; }
Cursor ray when right-click was pressed.
public Editor.Menu Editor.EditorEvent.ShowContextMenuEvent.Menu { get; set; }
Context menu being opened. Feel free to add options to it in your handler.
public Editor.SceneEditorSession Editor.EditorEvent.ShowContextMenuEvent.Session { get; set; }
Scene editor session that the context menu is being opened for.
public System.Nullable`1<Sandbox.SceneTraceResult> Editor.EditorEvent.ShowContextMenuEvent.Trace { get; set; }
Trace result if we hit an object in the scene when right-clicking.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.EditorEvent.ShowContextMenuEvent |