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

繼承: VisualShaderNode < Resource < RefCounted < Object

視覺化著色器中使用的選擇器函式。

說明

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

屬性

OpType

op_type

0


列舉

enum OpType: 🔗

OpType OP_TYPE_FLOAT = 0

浮點標量。

OpType OP_TYPE_INT = 1

整數標量。

OpType OP_TYPE_UINT = 2

不帶正負號的整數標量。

OpType OP_TYPE_VECTOR_2D = 3

2D 向量型別。

OpType OP_TYPE_VECTOR_3D = 4

3D向量型別。

OpType OP_TYPE_VECTOR_4D = 5

4D 向量型別。

OpType OP_TYPE_BOOLEAN = 6

布林型別。

OpType OP_TYPE_TRANSFORM = 7

變換型別。

OpType OP_TYPE_MAX = 8

代表 OpType 列舉的大小。


屬性說明

OpType op_type = 0 🔗

運算元和返回值的型別。