기술 자료

Unity Engine

Unity Engine

SetTextureScale(string, Vector2, int)

Set the scale of a given texture property.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters

propertyName

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

value

Scale to set.

coord

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