Hi,
I have a gameobject and i’m changing the texture of this object by script using
“GameObject.FindGameObjectWithTag(m_vObjectTag).renderer.material.mainTexture” and yes the textures are 2D - Texture2D ( as m trying to make a 2d game ).
So, now the problem is that there is a walk animation for which i obviously have to displace the object, So i tried it by using transform.translate, rigibody.moveposition, and even updating the position vector of transform as well as rigidbody, but nothing is happening. Meaning the debug.log is showing the updated values of that gameobject but that object is not moving visually.
However if i take a dummy gameobject (with no customized texture) and apply any of these methods to it, than it works and the object moves.
Thanks