Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: fluoo.lionel on May 11, 2016, 10:07:04 AM

Title: Use same sprite or atlas for NGUI and UI
Post by: fluoo.lionel on May 11, 2016, 10:07:04 AM
I would like to use the same sprite or atlas in my scene and in my NGUI Interface.

I created an Atlas to use a NGUI sprite on my NGUI Interface.

I created an Sprite Renderer on a Prefab to instantiate it on my Unity scene.

So I have two differents pictures.

Is it possible to use the NGUI Atlas on my Unity Sprite Renderer ? Or is it possible to use my Unity Sprite on NGUI interface ?

And how can I do it ?
Title: Re: Use same sprite or atlas for NGUI and UI
Post by: ArenMook on May 14, 2016, 06:10:42 PM
Sprite renderers render Unity sprites. NGUI's equivalent is UI2DSprite. Use that instead of creating an atlas.