- Home /
loading prefabs
So I'm not at this point of my project yet, but I needed to ask because it's been bugging me:
So I've been reading things about how when making an iphone game in unity, every asset should be loaded at the very beginning to avoid hitching.. Does that apply to environment assets a well? For example, if I have a sidescroller game and the character passes by a tree every 5 seconds, do I only have to load this tree once and reposition it in the scene relative to where the main character is? And if so, what is the best way to code such a thing?
Any help is appreciated, thx
Answer by mcunha98 1 · Mar 23, 2011 at 02:22 AM
Well...I guess you can use for example triggers. Pass the GameObject to move, an Empty in place where you want to move the GameObject. Maybe the more simple idea work, think about the user of triggers...
In my game I did something like this, I use triggers to move the camera to specific positions (the cyan rectangles pointing to an empty)
Your answer
Follow this Question
Related Questions
Prevent Unloading assets for Reloading scene for a second time! 1 Answer
Best practice for loading unloading characters with animation. 2 Answers
No "Standard Assets" in Project tab, new to unity, please help 2 Answers
Prefab in my asset bundle for iOS gets corrupted and doesn't show in the app 0 Answers