Question by
houdox · Jun 10, 2017 at 08:07 AM ·
textureresizemousewheel
It's is possible to resize texture with mousewhell ?
i'll would make a script to resize a texture with the mousewhell, using material.mainTextureScale
but i don't know how to get the value of the Mouse ScrollWhell. i'll try to :
( C#) public float value = Input.GetAxis ("Mouse ScrollWhell"); void Update () { if (Input.getAxis ("Mouse ScrollWhell") > 0f) // forward gameObject.GetComponent ().material.mainTextureScale += new Vector2 (value,0); }
but the size of the texture doesn't resize at all. I hope you can help me
Comment