Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

Registry

class in Unity.GraphToolkit.Editor.GraphVisualization

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides a method to create visualization contexts for graphs.

Use Registry.CreateVisualizationContext to create a Context for a specific graph. Access visualization features such as port previews through Unity.GraphToolkit.Editor.GraphVisualization.Context.PortPreview. Dispose of the returned Context when it is no longer needed.

Additional resources: Context, Unity.GraphToolkit.Editor.GraphVisualization.Context.PortPreview

 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.