Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public TransitionReference GetTransitionReference(Hash128 transitionID)

Parameters

transitionID

Hash128
The unique identifier of the transition to reference.

Returns

Type

Description

TransitionReferenceA TransitionReference that targets the transition identified by
transitionID
within this Context.

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
transitionID
.

Examples

TransitionReference transitionRef = context.GetTransitionReference(startTransition.ID);transitionRef.LineColor = DebugStyles.Pending;