Description
The SceneOrigin
property of the ConnectionHandleConfig
struct in the Editor.NodeEditor
namespace represents the origin point of a connection handle within the scene. This property is of type Vector2
, which typically holds two-dimensional coordinates (x, y) that define the position of the connection handle in the scene's coordinate space.
Usage
Use the SceneOrigin
property to get or set the position of a connection handle in the scene. This can be useful when you need to align or position connection handles relative to other elements in the node editor.
Example
// Example of accessing the SceneOrigin property
// Assume 'config' is an instance of ConnectionHandleConfig
Vector2 origin = config.SceneOrigin;
// Set a new origin for the connection handle
config.SceneOrigin = new Vector2(100.0f, 200.0f);