Skip to content

'showfps' command fails when 'devconsole.dat' file is missing #3

Description

@samlletas

When running the command showfps 1 and if devconsole.dat file is missing the following exception is raised:

NullReferenceException: Object reference not set to an instance of an object DavidFDev.DevConsole.DevConsoleMono.OnGUI () (at Library/PackageCache/com.davidfdev.devconsole@3d2a0ad071/Runtime/DevConsoleMono.cs:1409) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

However, setting any other stat beforehand, for example stats_set "test" 123 seems to prevent this error.

Package version: 1.04
Unity version: 2021.2.14

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions