文档

Unity Engine

Unity Engine

wrapMode

Options for sampling a texture if a texture coordinate is outside the [0, 1] range.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public TextureWrapMode wrapMode { get; set; }

Remarks

Using wrapMode sets the same wrapping mode on all axes. Different per-axis wrap modes can be set using Texture.wrapModeU, Texture.wrapModeV, Texture.wrapModeW. Querying the value returns the U axis wrap mode (same as Texture.wrapModeU getter).
Additional Resources: TextureWrapMode, Texture assets.