Cant change script values in inspector

I was using this script for scrolling textures,but when i change the values,every instance of the script are changed and i cant set the values manually in the spector.

using UnityEngine;
using System.Collections;

public class AnimatedUVs : MonoBehaviour
{

public int materialIndex = 0;
public static   Vector2 uvAnimationRate = new Vector2(1.0f,1.0f);
public string textureName = "_MainTex";

Vector2 uvOffset = Vector2.zero;

void LateUpdate() 
{
    uvOffset += ( uvAnimationRate * Time.deltaTime );
    if( renderer.enabled )
    {
        renderer.materials[ materialIndex ].SetTextureOffset( textureName, uvOffset );
    }
}

}

i tried modifying to this :

public  float hor;
public  float vert;
public int materialIndex = 0;
public   Vector2 uvAnimationRate = new Vector2( hor, vert );
public string textureName = "_MainTex";

but it still dont show in the inspector.

That one static keyword says not to show in the Inspector and to use the same value for all instances (which is what you said the problem was.) Taking it out should help that one.

My most common cause of not showing in the Inspector is there’s an error in the script (check the bottom “error” strip.) Even if the error is somewhere else, new variables won’t show in the Inspector until they appear in an error-free version.

Version 2 should be giving an error about can’t use globals hor and vert to right away initialize uvAnimate. Try moving the “=” into Start or Awake.