Wrap mode (Repeat or Clamp) of the texture.
renderer.material.mainTexture.wrapMode = TextureWrapMode.Clamp;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { renderer.material.mainTexture.wrapMode = TextureWrapMode.Clamp; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: renderer.material.mainTexture.wrapMode = TextureWrapMode.Clamp