Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeSwitch

Hérite de : 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.

Propriétés

OpType

op_type

0


Énumérations

enum OpType: 🔗

OpType OP_TYPE_FLOAT = 0

Un scalaire à virgule flottante.

OpType OP_TYPE_INT = 1

Un scalaire entier.

OpType OP_TYPE_UINT = 2

Un scalaire entier non signé.

OpType OP_TYPE_VECTOR_2D = 3

Un type de vecteur 2D.

OpType OP_TYPE_VECTOR_3D = 4

Un type de vecteur 3D.

OpType OP_TYPE_VECTOR_4D = 5

Un type de vecteur 4D.

OpType OP_TYPE_BOOLEAN = 6

Un type booléen.

OpType OP_TYPE_TRANSFORM = 7

Un type de transform.

OpType OP_TYPE_MAX = 8

Représente la taille de l'énumération OpType.


Descriptions des propriétés

OpType op_type = 0 🔗

A type of operands and returned value.