Author Topic: Use same sprite or atlas for NGUI and UI  (Read 2500 times)

fluoo.lionel

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 2
    • View Profile
Use same sprite or atlas for NGUI and UI
« 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 ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Use same sprite or atlas for NGUI and UI
« Reply #1 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.