Get RAPTOR

RaptorSuitePane

A Top, Front or Side pane, as passed to RaptorSuiteExternalTool.PaneGUI.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

Passed to the tool on every event of the pane, before the Suite's Mesh tool. Event.current is the pane's event, in the pane's GUI points. When the tool uses an event, the Mesh tool and the pane do not receive it.

public sealed class RaptorSuitePane

Properties

Camera

public Camera Camera { get; }

The pane's hidden orthographic camera, framed for this pass.

Forward

public Vector3 Forward { get; }

The camera's view direction, into the screen. For Top, it points down.

Name

public string Name { get; }

The pane's name: "Top", "Front" or "Side".

Rect

public Rect Rect { get; }

The pane's viewport in its GUI points, the same space as Event.current.mousePosition.

Window

public EditorWindow Window { get; }

The RAPTOR window that owns the pane.

Methods

Ray

public Ray Ray(Vector2 guiPoint)

Gets the world ray through a GUI point of this pane. The ray starts on the near plane and runs along the view direction.

ParameterTypeDescription
guiPointVector2A point in this pane's GUI space.

Returns: The ray.

Repaint

public void Repaint()

Repaints the window, including every pane and the 3D view.