Hello!
How can I change this value by script?
I figured out how to update the orientation to custom, but couldn’t find how to update its custom values after it.
Hello!
How can I change this value by script?
I figured out how to update the orientation to custom, but couldn’t find how to update its custom values after it.
Ok… I couldn’t find out how to update that exactly position, but messing around with the orientationMatrix (with a LOT of debug.logs all around), I managed to pinpoint the value I needed to change, which was this one:
Topic closed, I guess!
You could use Matrix4x4.TRS (https://docs.unity3d.com/ScriptReference/Matrix4x4.TRS.html) to make things simpler, where the arguments are position, rotation and scale.