VisualShaderNodeFrame
A frame other visual shader nodes can be attached to for better organization.
A frame other visual shader nodes can be attached to for better organization.
A rectangular frame that can be used to group visual shader nodes together to improve organization. Nodes attached to the frame will move with it when it is dragged and it can automatically resize to enclose all attached nodes. Its title, description and color can be customized.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VisualShaderNodeFrameConstructor
public VisualShaderNodeFrame();Properties5
AttachedNodesProperty
public int[] AttachedNodes { get; set; }The list of nodes attached to the frame.
AutoshrinkProperty
public bool Autoshrink { get; set; }If true, the frame will automatically resize to enclose all attached nodes.
TintColorProperty
public Color TintColor { get; set; }The color of the frame when VisualShaderNodeFrame.TintColorEnabled is true.
TintColorEnabledProperty
public bool TintColorEnabled { get; set; }If true, the frame will be tinted with the color specified in VisualShaderNodeFrame.TintColor.
TitleProperty
public string Title { get; set; }The title of the node.
Methods13
AddAttachedNodevoid
public void AddAttachedNode(int node);Adds a node to the list of nodes attached to the frame. Should not be called directly, use the VisualShader.AttachNodeToFrame method instead.
| Name | Type | Default |
|---|---|---|
node | int | — |
GetAttachedNodesint[]
public int[] GetAttachedNodes();int[]GetTintColorColor
public Color GetTintColor();ColorGetTitlestring
public string GetTitle();stringIsAutoshrinkEnabledbool
public bool IsAutoshrinkEnabled();boolIsTintColorEnabledbool
public bool IsTintColorEnabled();boolRemoveAttachedNodevoid
public void RemoveAttachedNode(int node);Removes a node from the list of nodes attached to the frame. Should not be called directly, use the VisualShader.DetachNodeFromFrame method instead.
| Name | Type | Default |
|---|---|---|
node | int | — |
SetAttachedNodes2 overloads
public void SetAttachedNodes(int[] attachedNodes);| Name | Type | Default |
|---|---|---|
attachedNodes | int[] | — |
public void SetAttachedNodes(ReadOnlySpan<int> attachedNodes);| Name | Type | Default |
|---|---|---|
attachedNodes | ReadOnlySpan<int> | — |
SetAutoshrinkEnabledvoid
public void SetAutoshrinkEnabled(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetTintColorvoid
public void SetTintColor(Color color);| Name | Type | Default |
|---|---|---|
color | Color | — |
SetTintColorEnabledvoid
public void SetTintColorEnabled(bool enable);| Name | Type | Default |
|---|---|---|
enable | bool | — |
SetTitlevoid
public void SetTitle(string title);| Name | Type | Default |
|---|---|---|
title | string | — |