mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
changing README styles
This commit is contained in:
parent
760f5101e4
commit
d0ae26b62f
@ -32,6 +32,7 @@
|
|||||||
</script>
|
</script>
|
||||||
+ ui-dat will infer the type of the property you're trying to add (based on its initial value) and create the corresponding control.
|
+ ui-dat will infer the type of the property you're trying to add (based on its initial value) and create the corresponding control.
|
||||||
+ The properties must be public, i.e. defined by `**this**.prop = value`.
|
+ The properties must be public, i.e. defined by `**this**.prop = value`.
|
||||||
|
|
||||||
## Monitor variable changes <i>outside</i> of the GUI
|
## Monitor variable changes <i>outside</i> of the GUI
|
||||||
Let's say you have a variable that changes by itself from time to time. If you'd like the GUI to reflect those changes, use the listen() method
|
Let's say you have a variable that changes by itself from time to time. If you'd like the GUI to reflect those changes, use the listen() method
|
||||||
GUI.add(obj, "propName").listen();
|
GUI.add(obj, "propName").listen();
|
||||||
|
Loading…
Reference in New Issue
Block a user