Serializeable Vector2 defaults

mh cant reproduce the bug

import { Behaviour, serializeable } from "@needle-tools/engine";

// Documentation → https://docs.needle.tools/scripting

export class MyOtherScript extends Behaviour {

    @serializeable()
    myBool:boolean = false;
    
    start() {
        console.log(this.myBool, this);
    }
}

ah maybe because of the _

yes, the field starting with _ is exported without it

so _myBool is exported as myBool instead

good to know I can fix that

by user 943936853348855838

internally there is still a call to Unity’s NicifyVariableName - when I remove it everything appears to still work fine, I think it should be removed at some point

but I dont want to make that change now

That call is removing the “_”

probably

by user 943936853348855838

Actually it looks like a gimbal issue.

by user 943936853348855838

Refresh the glitch. The loop now works and I have 1 set to inverse on the face camera, but if you go to the back of the building they stop rotating for some reason.

by user 943936853348855838

I removed the Y only and now it works better.

by user 943936853348855838