Registry
Provides a method to create visualization contexts for graphs.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public static class Registry
Remarks
Use Registry.CreateVisualizationContext to create a Context for a specific graph. Provides access to visualization features in the provided graph. Dispose of the returned Context when it is no longer needed.
Additional Resources: Context
Examples
using var context = Registry.CreateVisualizationContext(graph.ID);
Static Methods
Method | Description |
|---|---|
| CreateVisualizationContext | Creates and registers a new visualization context. |
| GetActiveContext | Retrieves the active Context for the specified graph. |