Tiles the texture, creating a repeating pattern.
renderer.material.mainTexture.wrapMode = TextureWrapMode.Repeat;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { renderer.material.mainTexture.wrapMode = TextureWrapMode.Repeat; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: renderer.material.mainTexture.wrapMode = TextureWrapMode.Repeat