Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Excal on May 05, 2014, 11:49:38 PM

Title: Best practices for UI
Post by: Excal on May 05, 2014, 11:49:38 PM
Is there any performance hit in additively loading a scene that contains the game's UI elements versus instantiating a prefab that contains the UI?

What's the best practice for isolating the UI from the rest of the game and including it?
Title: Re: Best practices for UI
Post by: ArenMook on May 06, 2014, 12:03:20 AM
Instantiating it should be faster simply because it doesn't involve loading a new scene.

Personally I use different prefabs. I create a UI, save it as a prefab. Anything that needs to be instantiated dynamically, like scoreboard items, ability icons, etc -- are individual prefabs of their own.