Vector2VisualiserWindow Class

Summary

[Editor-Only] The "Visualise" command in the context menu of a UnityEngine.Vector2 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["Vector2VisualiserWindow"] class Type type-node

Syntax

public class Vector2VisualiserWindow : 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 the extra options of this InspectorGadgets.Editor.PropertyVisualiserWindow.
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.Vector2.
Visualise<T>(SerializedProperty) void
Opens a InspectorGadgets.Editor.PropertyVisualiserWindow of the specified type and assigns the specified `property` as its target.
static