Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bypell |
tried this line:
scopepiv.RotationDegrees.y = Mathf.Clamp(scopepiv.RotationDegrees.y, -100.0f, 100.0f);
but it says that I can’t modify the return value of Spatial.RotationDegrees.y because it is not a variable.
how are you supposed to modify the x/y value of a vector3 property in c#???