Author Topic: Frame rate Counter that is NGUI 3 compatible  (Read 2175 times)

eco_bach

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Frame rate Counter that is NGUI 3 compatible
« on: January 17, 2017, 12:33:13 PM »
Hi, my trusty standby, Advanced FPS Counter from the Asset Store does not seem to be NGUI compatible.

Can anyone recommend a solution that works?

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Re: Frame rate Counter that is NGUI 3 compatible
« Reply #1 on: January 17, 2017, 04:00:34 PM »
The 'Advanced FPS Counter' plugin is really great and works with NGUI too. I am using it in multiple projects together with NGUI and it works well.
It doesn't render into NGUI Labels or such but you should be able to run it and just have the data printed into a regular canvas on top of your NGUI stuff. I know that the guy who made the plugin want to add NGUI support but as far as I know he hasn't gotten around to it yet.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Frame rate Counter that is NGUI 3 compatible
« Reply #2 on: January 18, 2017, 09:06:29 AM »
Replied to the OP's twitter inquiry earlier of the same question. I always just write my own. All it takes is an Update() function that increments an integer value. Also adding NGUI support to anything as simple as displaying text is a non-issue. GetComponent<UILabel>().text = whatever.ToString();

http://pastebin.com/Ln52QRW5

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Re: Frame rate Counter that is NGUI 3 compatible
« Reply #3 on: January 18, 2017, 11:10:02 AM »
The Advanced FPS Counter plugin is pretty cool though :) It has a bazillion small features, such as device and memory info, color coding for fps limits, etc.
And it runs on top of NUGI out of the box. For 10$ I am much to lazy to write my own :)