Skip to content

Uniforms_Syntax_Category

Aiekick edited this page Mar 19, 2019 · 1 revision

each uniform are attached to a default section called 'default'

but you can define your own :

  • uniform(hidden) => will hide the uniform, 'hidden' is a sepcific section name for that
  • uniform(toto) => will appear uniform under section toto

define the display order : (order must >= 0)

  • uniform(0) float a;
  • uniform(1) float b;
  • these ,order, will display b after a.

or define the display condition : (currently only work with checkbox and combobox uniform

  • with checkbox :
    • uniform(checkName==true)
    • uniform(checkName!=true)
  • with combobox :
    • uniform(comboName==optionA)
    • uniform(comboName!=optionB)

you can put these 3 section params together, or separated, or what you want, in any order you want :

  • examples :
    • uniform(toot:0:checkName==true)
    • uniform(0:toto:checkName==true)
    • uniform(checkName==true:0:toto)