Clamps the texture to the last pixel at the border.
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