Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Utility

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

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