VisualShaderNodeSwitch

Inherits: VisualShaderNode < Resource < RefCounted < Object

A selector function for use within the visual shader graph.

Description

Returns an associated value of the op_type type if the provided boolean value is true or false.

Properties

OpType

op_type

0

Enumerations

enum OpType:

  • OP_TYPE_FLOAT = 0 --- A floating-point scalar.

  • OP_TYPE_INT = 1 --- An integer scalar.

  • OP_TYPE_VECTOR = 2 --- A vector type.

  • OP_TYPE_BOOLEAN = 3 --- A boolean type.

  • OP_TYPE_TRANSFORM = 4 --- A transform type.

  • OP_TYPE_MAX = 5 --- Represents the size of the OpType enum.

Property Descriptions

Default

0

Setter

set_op_type(value)

Getter

get_op_type()

A type of operands and returned value.