Class reference

VisualShaderNodeIntParameter

Inherits VisualShaderNodeParameter

A visual shader node for shader parameter (uniform) of type int.

Description

A VisualShaderNodeParameter of type int. Offers additional customization for range of accepted values.

Properties

int default_value = 0

Default value of this parameter, which will be used if not set externally. default_value_enabled must be enabled; defaults to 0 otherwise.

bool default_value_enabled = false

If true, the node will have a custom default value.

int hint = 0

Range hint of this node. Use it to customize valid parameter range.

int step = 1

The step between parameter's values. Forces the parameter to be a multiple of the given value. hint must be HINT_RANGE_STEP for this to take effect.

Constants

HINT_NONE = 0

Enum: Hint

The parameter will not constrain its value.

HINT_RANGE = 1

Enum: Hint

The parameter's value must be within the specified min/max range.

HINT_RANGE_STEP = 2

Enum: Hint

The parameter's value must be within the specified range, with the given step between values.

HINT_ENUM = 3

Enum: Hint

The parameter uses an enum to associate preset values to names in the editor.

HINT_MAX = 4

Enum: Hint

Represents the size of the Hint enum.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.