Author Topic: NGUI extensibility  (Read 3923 times)

N3uRo

  • Guest
NGUI extensibility
« on: June 07, 2012, 01:11:19 PM »
Hi Aren,

I have a proposal for you.

What if you change UICamera script to be extensible? We use Kinect and Multitouch (with a library because Unity doesn't support in Windows 7) as inputs in some projects and we wish that we could add as new inputs to NGUI.

Is there any chance to add an option like this? I'm speaking only about the ability of extending, not adding more Inputs by you (it's a lot of work).

Thanks!!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI extensibility
« Reply #1 on: June 07, 2012, 03:22:36 PM »
Generally its easier to add a separate input class, not extend UICamera itself.

N3uRo

  • Guest
Re: NGUI extensibility
« Reply #2 on: June 07, 2012, 03:43:42 PM »
But if we could extend (or an input manager) UICamera we could use your system and scripts like: UIDragObject, UIDragabblePanel, etc... Because this scripts make use of your UICamera. Also to extend your event system with other events.

If you make easier to your customers you could benefit of the extensions if they go public.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI extensibility
« Reply #3 on: June 07, 2012, 03:47:02 PM »
Your input class can set UICamera.lastHit and other properties prior to SendMessage its event much like UICamera does though.