Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LineTextureMode

Choose how textures are applied to Lines and Trails.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum LineTextureMode

Fields

Value

Description

DistributePerSegmentMap the texture once along the entire length of the line, assuming all vertices are evenly spaced.
RepeatPerSegmentRepeat the texture along the line, repeating at a rate of once per line segment. To adjust the tiling rate, use Material.SetTextureScale.
StaticTrails do not change the texture coordinates of existing points when they add or remove points.
StretchMap the texture once along the entire length of the line.
TileRepeat the texture along the line, based on its length in world units. To set the tiling rate, use Material.SetTextureScale.