I have a bunch of prefabs that either have a positive or negative rotation.z (from the values I read in the inspector)
But whenever I try to test the rotation.z in an if statement as such:
if (thePrefab.transform.rotation.z < 0) {
// do some code
}
… This if statement is never true for some reason.
I also tried with transform.eulerAngles.z, but it didn’t work either.
How can I make sure this if statement is true when prefabs whose rotation is shown as negative in the inspector?
Thanks in advance
Yes it worked, thanks for that!
– ez06