ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


SetTextureOffset(string, Vector2, int)

Set the offset of a given texture property.
読み終わるまでの所要時間 1 分最終更新 24日前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
注意
Deprecated. Use MaterialProperty instead.
public void SetTextureOffset(string propertyName, Vector2 value, int coord)

Parameters

propertyName

Name of the texture property that you wish to modify the offset of.

value

Scale to set.

coord

Set the x or y component of the offset (0 for x, 1 for y).