Hello again! Are there any possibility to configure gameobjects right from editor.
Let’s assume that I have 2 gameobjects which are almost the same except of movement speed. It would be cool if I could configure them from Properties tab or somewhere else by modifying a kind of public variables which then will be used in the script component.
Right now I should create two different gameobjects with two different scripts, and difference will be just in constant value of my “Speed” variable. Am I right?
You can use script properties for it https://www.defold.com/manuals/script-properties/
go.property("speed", 20) -- 20 is default value
4 Likes
Thanks. It is exactly what I need!