Skip to content

Commit

Permalink
Merge pull request #213 from mentalvertex/unity-example-fix
Browse files Browse the repository at this point in the history
Added disposal on exit in the Unity example
  • Loading branch information
jdavidberger authored Oct 14, 2020
2 parents fe2c049 + d249017 commit 2e4e5e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/cs/UnityViewer/Assets/SurviveObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@ void Update() {
updatedObject.transform.localRotation = newRotation;
}
}

void OnApplicationQuit() {
if (survive != null){
survive.Close();
survive.Dispose();
survive = null;
}
}
}

0 comments on commit 2e4e5e2

Please sign in to comment.