From 0128f8c70b1799b87a344c3f315163fa70613ac5 Mon Sep 17 00:00:00 2001 From: David F Date: Sun, 3 Apr 2022 12:50:24 +1000 Subject: [PATCH] Fixed reported issue with fps display --- CHANGELOG.md | 3 +++ Runtime/DevConsoleMono.cs | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3d920a..064e8cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.5] - 2022-04-03 +- Fixed issue with fps display (https://github.com/DavidF-Dev/Unity-DeveloperConsole/issues/3) + ## [1.0.4] - 2021-12-09 - Added properties for accessing the current average fps and milliseconds per frame. - Changed cs_evaluate to also work without the command name being specified. diff --git a/Runtime/DevConsoleMono.cs b/Runtime/DevConsoleMono.cs index c59b207..720d1f0 100644 --- a/Runtime/DevConsoleMono.cs +++ b/Runtime/DevConsoleMono.cs @@ -114,7 +114,7 @@ internal sealed class DevConsoleMono : MonoBehaviour #endregion - private static readonly Version _version = new Version(1, 0, 4); + private static readonly Version _version = new Version(1, 0, 5); private static readonly string[] _permanentCommands = { "devconsole", "commands", "help", "print", "clear", "reset", "bind", "unbind", "bindings" @@ -1406,7 +1406,7 @@ private void OnGUI() if (_isDisplayingFps) { - if (_fpsStyle == null || _statFontSize != _statStyle.fontSize) + if (_fpsStyle == null || _statFontSize != _fpsStyle.fontSize) { // Create the style _fpsStyle = new GUIStyle(GUI.skin.box) diff --git a/package.json b/package.json index 9b97be8..eb1130b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.davidfdev.devconsole", - "version": "1.0.4", + "version": "1.0.5", "displayName": "In-game Developer Console by DavidFDev", "description": "A user-friendly in-game developer console that allows developers or players to execute commands or view incoming Unity messages. (MIT License)", "unity": "2019.1",