public void SetTextureOffset(string propertyName, Vector2 value, int coord) { foreach (Material material in base.targets) { Vector2 textureOffset = material.GetTextureOffset(propertyName); textureOffset[coord] = value[coord]; material.SetTextureOffset(propertyName, textureOffset); } }