Skip to content

UI.Variable

Name - Description Default Type
<input> Any
<output> Any
Variable The variable that holds the value. None &Any
Labeled If the name of the variable should be visible as a label. false Bool

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (Setup
   (float4 -1 0 0 1) >= .my-var)
  (UI
   .ui-draw-queue
   (UI.CentralPanel
    (UI.Variable .my-var)))

  (GFX.Render :Steps .render-steps)))