Summary
[Editor-Only]
The "Visualise" command in the context menu of a
System.Single
property can be used to open this window
which visualises the property's value in the scene.
- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor - Base Types
-
- EditorWindow
- Property
Visualiser Window
graph BT
Type-->Base0["PropertyVisualiserWindow"]
click Base0 "/inspector-gadgets/api/InspectorGadgets.Editor/PropertyVisualiserWindow"
Base0-->Base1["EditorWindow"]
Type["FloatVisualiserWindow"]
class Type type-node
Syntax
public class FloatVisualiserWindow : PropertyVisualiserWindow
Properties
Name | Value | Summary |
---|---|---|
SelectedTransform | Transform |
If the "Relative to Selection" toggle is enabled, this property returns the selected object's
UnityEngine.Transform .
Inherited from Property
|
Target | Serialization |
A serializable reference to the
UnityEditor.SerializedProperty being visualised.Inherited from Property
|
WindowName | string |
The name of the window to use as its title.
|
Methods
Name | Value | Summary |
---|---|---|
AddVisualiseItem |
void |
Add a "Visualise" menu item which calls
InspectorGadgets.Editor.PropertyVisualiserWindow.Visualise``1(UnityEditor.SerializedProperty) .Inherited from Property
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.
Inherited from Property
|
OnDisable |
void |
Called when this window is unloaded.
Unregisters the
InspectorGadgets.Editor.PropertyVisualiserWindow.DoSceneGUI(UnityEditor.SceneView) callback.
Inherited from Property
|
OnEnable |
void |
Called when this window is loaded.
Sets the window title and registers the
InspectorGadgets.Editor.PropertyVisualiserWindow.DoSceneGUI(UnityEditor.SceneView) callback.
Inherited from Property
|
OnGUI |
void |
Draws this window's GUI by calling
InspectorGadgets.Editor.PropertyVisualiserWindow.DoOptionsGUI then drawing the target property.
Inherited from Property
|
OnSceneGUI |
void |
Draws gizmos in the scene to visualise the target property.
|
ValidateTarget |
bool |
Returns true if the target property is a
UnityEditor.SerializedPropertyType.Float . |
Visualise |
void |
Opens a
InspectorGadgets.Editor.PropertyVisualiserWindow of the specified type and assigns the specified `property`
as its target.
Inherited from Property
static
|