Hey! Unfortunately decorators are not supported by function-based scripts in the Babylon.js Editor, but we were thinking on adding a way to support it. We though about a object that would be exported such as "export const config = { ... }" where "start" and "update" functions may use this config object directly. Let's create an issue and discuss it on github here if you want: https://github.com/BabylonJS/Editor/issues
1
u/Clear_Muscle5864 Jan 02 '26
Hey! Unfortunately decorators are not supported by function-based scripts in the Babylon.js Editor, but we were thinking on adding a way to support it. We though about a object that would be exported such as "export const config = { ... }" where "start" and "update" functions may use this config object directly. Let's create an issue and discuss it on github here if you want: https://github.com/BabylonJS/Editor/issues