Summary
Called while drawing the GUI for the
Animancer.Editor.Previews.TransitionPreviewWindow
scene.- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Containing Type
- ITransitionGUI
Syntax
void OnPreviewSceneGUI(TransitionPreviewDetails details)
Remarks
Example:
// For the AttackTransition example from ITransitionGUI.
// Draw the hit box as a wireframe cube.
public void OnPreviewSceneGUI(TransitionPreviewDetails details)
{
Color color = Handles.color;
Handles.color = new(0.5f, 1, 0.5f);
Transform transform = details.Transform;
Handles.DrawWireCube(
transform.TransformPoint(_HitBox.center),
_HitBox.size);
Handles.color = color;
}
Parameters
Name | Type | Description |
---|---|---|
details | Transition |
Return Value
Type | Description |
---|---|
void |