Skip to content

Commit

Permalink
Fixed reported issue with fps display
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidF-Dev committed Apr 3, 2022
1 parent 3d2a0ad commit 0128f8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Runtime/DevConsoleMono.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 0128f8c

Please sign in to comment.