GetTransitionReference(Hash128)
Returns a TransitionReference that identifies the transition with the given ID within this visualization context.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public TransitionReference GetTransitionReference(Hash128 transitionID)
Parameters
Returns
Type | Description |
|---|---|
| TransitionReference | A TransitionReference that targets the transition identified by |
Remarks
The returned TransitionReference is only meaningful for this Context and references the transition by its ID rather than by direct lookup. The transition doesn't need to exist in the current state machine canvas at the time of this call. Throws ObjectDisposedException when you access this method after you call Context.Dispose on the context. Throws ArgumentException when you provide an invalid .
transitionIDExamples
TransitionReference transitionRef = context.GetTransitionReference(startTransition.ID);transitionRef.LineColor = DebugStyles.Pending;