Summary
[Editor-Only]
Allows any object to be highlighted in the GUI like with
UnityEditor.EditorGUIUtility.PingObject(UnityEngine.Object)
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["ObjectHighlightGUI"]
class Type type-node
Syntax
public static class ObjectHighlightGUI
Fields
Name | Constant Value | Summary |
---|---|---|
ExpandDuration | 0.5 |
The highlight will start by expanding then contracting over this duration.
static
|
HighlightColor |
The colour used to highlight the pinged object.
static
|
|
HighlightSize | 5 |
The size that the highlight expands to.
static
|
LingerDuration | 2 |
After the
Animancer.Editor.ObjectHighlightGUI.ExpandDuration the highlight will fade out over this duration.static
|
Properties
Name | Value | Summary |
---|---|---|
CurrentTime | double |
UnityEditor.EditorApplication.timeSinceStartup static
|
StartTime | double |
The time when the highlight was started.
static
|
Target | Object |
The object currently being highlighted.
static
|
Methods
Name | Value | Summary |
---|---|---|
Draw |
void |
Draws the highlight if the given `target` is the current
Animancer.Editor.ObjectHighlightGUI.Target .static
|
Highlight |
void |
Sets the target object to start highlighting it.
static
|