Skip to content

list_int

List of Integers parameter.

The list_int shows a select input type in the effect UI. This is typically used to change the behaviour of the effect and making it easier to understand for the end-user.

Shader Equivalent

uniform int parameter_name;

Example

{
  "type": "list_int",
  "name": "appear_mode",
  "label": "Appear mode",
  "values": [
    {
      "label": "Previous scene over next",
      "value": 0
    },
    {
      "label": "Next scene over previous",
      "value": 1
    }
  ],
  "default": 0
}

Properties

Property
Type Required If absent Description
default number Yes - -
name string Yes - Name of the field. It must be the same as the associated variable in the shader.
type "list_int" Yes - -
values array of object Yes - List of values available
description string No - Description of the field. It will be shown in the UI.
devmode boolean No false If set to true, this field will only be available in the property UI if the developer mode is active.
label string No "Same as name" The label of the field in the UI. If not set, the name will be used.