ClearCustomization()
Clears all customization previously applied to the referenced transition.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public void ClearCustomization()
Remarks
If the current reference does not correspond to any transition in the state machine, any stored visual data for that transition is removed and the call has no further effect. Calling this method has no effect when the TransitionReference has no associated TransitionReference.Context, such as when it is . Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context.
defaultRemove every visual override previously applied to a transition and restore the default drawing in the state machine canvas.
Examples
TransitionReference transitionRef = context.GetTransitionReference(transitionID);transitionRef.ClearCustomization();