Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: eco_bach on January 17, 2017, 12:33:13 PM

Title: Frame rate Counter that is NGUI 3 compatible
Post by: eco_bach 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?
Title: Re: Frame rate Counter that is NGUI 3 compatible
Post by: Holy Manfred 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.
Title: Re: Frame rate Counter that is NGUI 3 compatible
Post by: ArenMook 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
Title: Re: Frame rate Counter that is NGUI 3 compatible
Post by: Holy Manfred 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 :)