void Start() { var texture = SharedDrawing.CreateXamagonTexture(); var material = gameObject.GetComponent <MeshRenderer>().material; material.mainTexture = texture; }
void Start() { var texture = SharedDrawing.CreateXamagonTexture(); var rawImage = gameObject.GetComponent <RawImage>(); rawImage.texture = texture; }