I have an imported 3d model.
When importing the model, the transform rotation is (-90,0,0).
In the inspector, I cannot rotate this item around its local y-axis.
When changing the y euler angles, it proceedes to rotate around its local z-axis, instead of the y-axis.
I am surprised this had never happened to me, I reproduced this behaviour and it’s happening because of Gimbal lock in the inspector (If you want to know more about gimbal lock do it here
)
This piece of code will rotate your object in the local Y axis: