Skip to content

Commit

Permalink
Test Application.lowMemory
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
eeropomell committed Jun 23, 2024
1 parent 5377539 commit 6004862
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Scripts/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,16 @@ string HttpLoadSketchCallback(HttpListenerRequest request)
return "";
}

private void OnMemoryLow()
{
Application.Quit();
}

void Start()
{

Application.lowMemory += OnMemoryLow;

// Use of ControllerConsoleScript must wait until Start()
ControllerConsoleScript.m_Instance.AddNewLine(GetStartupString());

Expand Down

0 comments on commit 6004862

Please sign in to comment.