Quantcast
Channel: Answers by "KubaPrusak"
Viewing all articles
Browse latest Browse all 21

Answer by KubaPrusak

$
0
0
You can fill the camera view with textures of a grid that tessellate. Then you can use this function OnBecameInvisible() [Documentation Link][1] to see when the object goes outside the screen. When it does go outside in the BecomeInvisible you can move its position so that when the player moves in a direction the grid is there. For example If player is moving right function OnBecomeInvisible() { if (direction == "right") { this.gameobject.transform.translate(value that will make it go on the other side of the screen to tesselate); } } This script would go on the grid texture gameobject. [1]: http://docs.unity3d.com/ScriptReference/Renderer.OnBecameInvisible.html

Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>