You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a new script with for example the name 'lookAtScreen' then inside the script the result is 'lookAtscreen'. The S is no capital letter anymore. With for example 'thisIsABug' the result inside the script is 'thisIsAbug'. The B is no capital letter anymore. If I try 'testTestTest' then the result is as expected.
Based on naming conventions been used: lookAtScreen should be lookAtScreen indeed. But thisIsABug should be thisIsAbug, as consecutive capital letters should be lower case. Like HTMLClass, should be HtmlClass, or RGB should be Rgb.
Activity
Maksims commentedon Sep 22, 2020
Based on naming conventions been used:
lookAtScreenshould belookAtScreenindeed. ButthisIsABugshould bethisIsAbug, as consecutive capital letters should be lower case. LikeHTMLClass, should beHtmlClass, orRGBshould beRgb.albertvanveen commentedon Sep 22, 2020
Ah ok I didn't know that. Then the problem is only when capital letters are used with only one normal letter in between.
willeastcott commentedon Feb 25, 2023
The code responsible for this is here:
https://github.com/playcanvas/editor-api/blob/main/src/assets/createScript.js#L17
willeastcott commentedon Dec 18, 2025
Appears fixed:
camel-case.mp4
Closing.
albertvanveen commentedon Dec 18, 2025
Yes, this was fixed recently: playcanvas/editor-api#110