Author Topic: Simple question  (Read 3731 times)

williamian

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Simple question
« on: January 04, 2015, 09:05:37 AM »
I have the latest version of nGUI and the issue is, every time I target something in scene, then click on a GUI element, it de-selects that target, i.e: I have a npc selected and when I go to use a skill in action slot on GUI it de-selects him?

If anyone has any ideas or is using Pylgame with nGUI, any info would be appreciated, thanks.

Skype me if you like, william48 and firecatgames.
« Last Edit: January 04, 2015, 09:29:49 AM by williamian »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Simple question
« Reply #1 on: January 05, 2015, 12:06:56 PM »
NGUI selection is given to the last object you clicked on. Only one thing can be selected at a time. If you don't want this, you need your own selection logic. Listen to OnPress or OnClick, and change your own custom selection state within.