marwie1
(marwi)
November 6, 2022, 12:00am
21
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);
}
}
marwie1
(marwi)
November 6, 2022, 12:00am
22
ah maybe because of the _
marwie1
(marwi)
November 6, 2022, 12:00am
23
yes, the field starting with _ is exported without it
marwie1
(marwi)
November 6, 2022, 12:00am
24
so _myBool is exported as myBool instead
good to know I can fix that
by user 943936853348855838
marwie1
(marwi)
November 6, 2022, 12:00am
26
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
marwie1
(marwi)
November 6, 2022, 12:00am
27
but I dont want to make that change now
marwie1
(marwi)
November 6, 2022, 12:00am
28
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