Monday, August 1, 2022
HomeGame DevelopmentUnity 2nd - Creating Short-term Objects Throughout the Scope Of the Digital...

Unity 2nd – Creating Short-term Objects Throughout the Scope Of the Digital camera View


I need to create one massive tilemap, and need objects positioned on it like a number of blades of grass and timber. I need the tufts of grass and tree objects to be positioned based mostly on particular placeholder tiles on the one tile map (to make pathfinding simpler). Now, if I had been to populate your entire map with these particular person objects (particularly, particular person blades of grass), I really feel like it could sluggish issues down and be unsustainable. My thought is that I might evaluate the tiles which can be inside the scope of the digital camera view, and add the objects briefly, in order that I am not filling your entire map with blades of grass or timber, however solely the present digital camera view.

To do that, I’d discover the digital camera positions, iterate by the tiles on the tilemap inside the digital camera view, and apply the objects onto stated tiles, and delete these objects anytime the digital camera modifications. Is that this an inexpensive resolution to what I need to do, or am I lacking one thing that may make this complete course of simpler?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments