I have made an attibute using
Ui.attributes.add('LookSpeed', {
type:'number',
default: 1,
});
Now I dont want it anymore, so I removed it and reparsed the script, but it still shows in the editor
I also tried Ui.attributes.remove(‘LookSpeed’); but that shows remove as an undefined function
Hi @rleinfellner and welcome,
Normally removing the attribute code from the script and re-parsing it should be enough to remove it from editor.
Are you getting any error in your PlayCanvas editor (lower left corner)?
I just noticed there was an error, which stopped the scrip parsing, once i fixed that it was fine. Thank you
1 Like