Table of Contents

Class CeresGraphEditorExtensions

Namespace
Ceres.Editor.Graph
Assembly
Ceres.Graph.Editor.dll
public static class CeresGraphEditorExtensions
Inheritance
CeresGraphEditorExtensions
Inherited Members

Methods

ApplyOffsetToGraph(CeresGraph, Vector2)

Apply offset to all graph elements (nodes and node groups)

public static void ApplyOffsetToGraph(this CeresGraph graph, Vector2 offset)

Parameters

graph CeresGraph
offset Vector2

CalculatePasteOffset(CeresGraph, Vector2)

Calculate paste offset based on graph centroid and target mouse position

public static Vector2 CalculatePasteOffset(this CeresGraph graph, Vector2 targetMousePosition)

Parameters

graph CeresGraph
targetMousePosition Vector2

Returns

Vector2