Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetConditionReference(Hash128)

Returns a ConditionReference that identifies the condition with the given ID within this visualization context.
Read time 1 minuteLast updated 6 days ago

Definition

public ConditionReference GetConditionReference(Hash128 conditionID)

Parameters

conditionID

Hash128
The unique identifier of the condition to reference.

Returns

Type

Description

ConditionReferenceA ConditionReference that targets the condition identified by
conditionID
within this Context.

Remarks

The returned ConditionReference is only meaningful for this Context and references the condition by its ID rather than by direct lookup. The condition doesn't need to exist in the current graph 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
conditionID
.

Examples

ConditionReference conditionRef = context.GetConditionReference(conditionID);conditionRef.Icon = DebugStyles.PendingIcon;