public sealed class NodeSettingMemberOne of a node's settings, as a member the editing pipeline can bind.
Remarks
NodePortMember's twin, for the things made of names. A setting lives in Texts rather than in Values, is a rather than lanes of float, and is written by a SetPortTextCommand — and everything else about it is the same argument the port member makes, which is why it derives from the same descriptor type and gets the same row, reset button, tooltip and multi-node edit.
⚠ There is no "connected" case. A setting has no socket and no edge, so unlike a port it is always a row — see SettingAttribute.
Fields and properties (4)
public SettingDefinition SettingThe setting this stands for.
public override Type MemberTypepublic override Type OwnerTypeWhat it belongs to.
public override bool CanWriteWhether it can be written at all, condition and read-only flag aside.
Methods (5)
public NodeSettingMember(NodeGraphModel graph, SettingDefinition setting)Describes one setting of a node type.
public override object? GetBoxed(object owner)public override void SetBoxed(object owner, object? value)public override IEditorCommand CreateSetCommand(IReadOnlyList<object> targets, object? value, EditorDocument? document)Builds the undoable command that sets this member across a selection.
public static Type TypeOf(SettingKind kind)What one setting's value is worth as a member.
Used by (4)
- GraphDeclarationTestsVixen.Editor.NodeGraph.Tests
- GraphDocumentTestsVixen.Editor.NodeGraph.Tests
- NodePortEditProviderVixen.Editor.NodeGraph
- NodePortProviderTestsVixen.Editor.NodeGraph.Tests