VisualShaderNodeIntParameter
A visual shader node for shader parameter (uniform) of type [int].
A visual shader node for shader parameter (uniform) of type [int].
A VisualShaderNodeParameter of type [int]. Offers additional customization for range of accepted values.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VisualShaderNodeIntParameterConstructor
public VisualShaderNodeIntParameter();Properties7
DefaultValueProperty
public int DefaultValue { get; set; }Default value of this parameter, which will be used if not set externally. VisualShaderNodeIntParameter.DefaultValueEnabled must be enabled; defaults to 0 otherwise.
DefaultValueEnabledProperty
public bool DefaultValueEnabled { get; set; }If true, the node will have a custom default value.
EnumNamesProperty
public string[] EnumNames { get; set; }The names used for the enum select in the editor. VisualShaderNodeIntParameter.Hint must be VisualShaderNodeIntParameter.HintEnum.Enum for this to take effect.
HintProperty
public VisualShaderNodeIntParameter.HintEnum Hint { get; set; }Range hint of this node. Use it to customize valid parameter range.
MaxProperty
public int Max { get; set; }The maximum value this parameter can take. VisualShaderNodeIntParameter.Hint must be either VisualShaderNodeIntParameter.HintEnum.Range or VisualShaderNodeIntParameter.HintEnum.RangeStep for this to take effect.
MinProperty
public int Min { get; set; }The minimum value this parameter can take. VisualShaderNodeIntParameter.Hint must be either VisualShaderNodeIntParameter.HintEnum.Range or VisualShaderNodeIntParameter.HintEnum.RangeStep for this to take effect.
StepProperty
public int Step { get; set; }The step between parameter's values. Forces the parameter to be a multiple of the given value. VisualShaderNodeIntParameter.Hint must be VisualShaderNodeIntParameter.HintEnum.RangeStep for this to take effect.
Methods15
GetDefaultValueint
public int GetDefaultValue();intGetEnumNamesstring[]
public string[] GetEnumNames();string[]GetHintVisualShaderNodeIntParameter.HintEnum
public VisualShaderNodeIntParameter.HintEnum GetHint();VisualShaderNodeIntParameter.HintEnumGetMaxint
public int GetMax();intGetMinint
public int GetMin();intGetStepint
public int GetStep();intIsDefaultValueEnabledbool
public bool IsDefaultValueEnabled();boolSetDefaultValuevoid
public void SetDefaultValue(int value);| Name | Type | Default |
|---|---|---|
value | int | — |
SetDefaultValueEnabledvoid
public void SetDefaultValueEnabled(bool enabled);| Name | Type | Default |
|---|---|---|
enabled | bool | — |
SetEnumNames2 overloads
public void SetEnumNames(ReadOnlySpan<string> names);| Name | Type | Default |
|---|---|---|
names | ReadOnlySpan<string> | — |
public void SetEnumNames(string[] names);| Name | Type | Default |
|---|---|---|
names | string[] | — |
SetHintvoid
public void SetHint(VisualShaderNodeIntParameter.HintEnum hint);| Name | Type | Default |
|---|---|---|
hint | VisualShaderNodeIntParameter.HintEnum | — |
SetMaxvoid
public void SetMax(int value);| Name | Type | Default |
|---|---|---|
value | int | — |
SetMinvoid
public void SetMin(int value);| Name | Type | Default |
|---|---|---|
value | int | — |
SetStepvoid
public void SetStep(int value);| Name | Type | Default |
|---|---|---|
value | int | — |
VisualShaderNodeIntParameter.HintEnum
| Value | Description |
|---|---|
Enum = 3 | The parameter uses an enum to associate preset values to names in the editor. |
Max = 4 | Represents the size of the |
None = 0 | The parameter will not constrain its value. |
Range = 1 | The parameter's value must be within the specified |
RangeStep = 2 | The parameter's value must be within the specified range, with the given |