Vector3VisualiserWindow Class

Summary

[Editor-Only] The "Visualise" command in the context menu of a UnityEngine.Vector3 property can be used to open this window which visualises the property's value in the scene.
graph BT Type-->Base0["PropertyVisualiserWindow"] click Base0 "/inspector-gadgets/api/InspectorGadgets.Editor/PropertyVisualiserWindow" Base0-->Base1["EditorWindow"] Type["Vector3VisualiserWindow"] class Type type-node

Syntax

public class Vector3VisualiserWindow : PropertyVisualiserWindow

Properties

Name Value Summary
SelectedTransform Transform
If the "Relative to Selection" toggle is enabled, this property returns the selected object's UnityEngine.Transform.
Target Serialization.PropertyReference
A serializable reference to the UnityEditor.SerializedProperty being visualised.
WindowName string
The name of the window to use as its title.

Methods

Name Value Summary
AddVisualiseItem<T>(GenericMenu, SerializedProperty) void
Add a "Visualise" menu item which calls InspectorGadgets.Editor.PropertyVisualiserWindow.Visualise``1(UnityEditor.SerializedProperty).
static
DoOptionsGUI() void
Draws a toggle to control whether the visualisations should be relative to the selected object or not. Override this method to add additional options to the window.
OnDisable() void
Called when this window is unloaded. Unregisters the InspectorGadgets.Editor.PropertyVisualiserWindow.DoSceneGUI(UnityEditor.SceneView) callback.
OnEnable() void
Called when this window is loaded. Sets the window title and registers the InspectorGadgets.Editor.PropertyVisualiserWindow.DoSceneGUI(UnityEditor.SceneView) callback.
OnGUI() void
Draws this window's GUI by calling InspectorGadgets.Editor.PropertyVisualiserWindow.DoOptionsGUI then drawing the target property.
OnSceneGUI(SceneView) void
Draws gizmos in the scene to visualise the target property.
ValidateTarget() bool
Returns true if the target property is a UnityEditor.SerializedPropertyType.Vector3.
Visualise<T>(SerializedProperty) void
Opens a InspectorGadgets.Editor.PropertyVisualiserWindow of the specified type and assigns the specified `property` as its target.
static