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
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public ConditionReference GetConditionReference(Hash128 conditionID)
Parameters
Returns
Type | Description |
|---|---|
| ConditionReference | A ConditionReference that targets the condition identified by |
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 .
conditionIDExamples
ConditionReference conditionRef = context.GetConditionReference(conditionID);conditionRef.Icon = DebugStyles.PendingIcon;