Set tilemap's custom orientation position by script

Hello!

How can I change this value by script?

6409344--715704--upload_2020-10-12_10-59-39.png

I figured out how to update the orientation to custom, but couldn’t find how to update its custom values after it.

6409344--715713--upload_2020-10-12_11-1-37.png

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:

6409437--715734--upload_2020-10-12_11-26-39.png

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.