Author Topic: Detect NGUI version in script  (Read 2542 times)

giosolo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Detect NGUI version in script
« on: June 06, 2014, 04:57:16 PM »
I'm writing a plugin that is based on the existence of NGUI in the project.
Is there a way to detect the NGUI version via code or that NGUI does not exist in the project?

Thanks,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Detect NGUI version in script
« Reply #1 on: June 06, 2014, 09:54:51 PM »
No, there is no way to do this in C# that I'm aware of. You will get compile errors if NGUI isn't present and you happen to be using its code.