Skip to main content
Version: 4.3.0

Select

select

Use Select to select an item according to the input index (Supporting Number, Vec2, Vec3, Vec4, String, Color, Texture 2D, Rect, Material). Select is in the Utility category.

Input

NameData TypeDescription
IndexNumberControlling which item to be selected, it will be rounded to 0, 1, 2 etc. For example, if the input is 1.4, it will be recognized 1, if it is 1.5, it will be 2, so on and so forth.
Item 0NumberAny input item according to set type, will be selected if index is 0.
Item 1NumberAny input item according to set type, will be selected if index is 1.
Item 2NumberAny input item according to set type, will be selected if index is 2.

Output

NameData TypeDescription
ItemNumberSelected item according to the current index input.

Example

select example

This example shows how to select a random texture for the 2D image.

select node