Suppose we have this:
const input = featuresGui.addInput(currentAttrValues, paramName, {
min: 0,
max: 50,
step: 1,
});
input.on('change', function (ev) {
updateSomething(paramName, ev.value)
});
Now, suppose some external code modifies currentAttrValues
,
// later, somewhere else:
currentAttrValues[paramName] = 40
// ____?_____
How do we update Tweakpane so that the GUI updates to the new values?
Owner Name | cocopon |
Repo Name | tweakpane |
Full Name | cocopon/tweakpane |
Language | TypeScript |
Created Date | 2016-05-10 |
Updated Date | 2023-03-17 |
Star Count | 2603 |
Watcher Count | 19 |
Fork Count | 71 |
Issue Count | 11 |
Issue Title | Created Date | Updated Date |
---|