private SetTextureOffset ( string propertyName, Vector2 value, int coord ) : void | ||
propertyName | string | |
value | Vector2 | |
coord | int | |
return | void |
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);
}
}