-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to set strings? #312
Comments
I think const saoFolder = gui.addFolder('SAO');
saoFolder.add(saoParams, 'enabled').name('Enabled');
saoFolder.add(saoParams, 'bias', -2, 2).name('Bias');
saoFolder.add(saoParams, 'intensity', 0, 1.0).name('Intensity'); |
⬆️ Does not work, name stays at property |
Hmm, perhaps I'm misunderstanding the question, but appears to work for me on the latest dat.gui (0.7.9). Here's a JSFiddle example where I've renamed the gui params to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const saoFolder = gui.addFolder('SAO'); saoFolder.add(saoParams, 'enabled'); saoFolder.add(saoParams, 'bias', -2, 2); saoFolder.add(saoParams, 'intensity', 0, 1.0);
Fields that are created are named after property. Can i set them to a custom string?
I want to have string variable for different languages. I also need english string to be capitalized, Enabled, Bias, Intensity... without changing property names.
The text was updated successfully, but these errors were encountered: