Author Topic: How to have an outline and shadow on text?  (Read 2002 times)

super-cypher

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
How to have an outline and shadow on text?
« on: June 07, 2014, 01:14:23 PM »
Hi

so i have just left Daikon forge Gui and started using Ngui today and one thing i have found is that i can only choose 'either' outline or shadow. On DFgui i could choose both by ticking the box in the inspector, which gave a nice result. Please can someone let me know how i do this with Ngui? is there a check-box or something i am missing?

And i use playmaker for my game so i dont code.

many thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to have an outline and shadow on text?
« Reply #1 on: June 07, 2014, 09:28:27 PM »
In NGUI you can bake all kinds of effects to the font by selecting the bitmap font prefab and using the "Modify" section. Using the inspector setting is inefficient, as the label has to be rendered multiple times in order to achieve the desired effect. In case of shadow, it means it's drawn twice. In case of outline -- 5 times. Shadow + outline would be at least 6 times. If you bake the effect using the Modify section, the label will only need to be drawn once. Plus, you can do much nicer looking effects.