Open
Description
<!DOCTYPE html>
<html>
<head></head>
<body>
<script src="dat.gui.js"></script>
<script>
var params = { 'value': 0 };
var gui = new dat.GUI();
var typeController = gui.add(params, 'value');
gui.remember(params);
</script>
</body>
</html>
Enter 1 for the "value" parameter.
Click the "New" button, and enter "One" as the name of the preset.
Enter 2 for the "value" parameter.
Click the "New" button, and enter "Two" as the name of the preset.
According to the code, it appears that when creating the first preset, both the "Default" and "One" presets will be saved. If we click the gear button, we can see that the "Default" and "One" presets are empty (but "Two" is fine). It appears that the getCurrentPreset()
method returns an empty object on the first save.