1

Is it possible to run code before the Unity player is closed (by closed, we mean all ways of closing the program, either by Alt+F4, pressing the X button on the window corners, closed from within the game, etc.)? If yes, how?

4

1 回答 1

2

您需要使用该OnApplicationQuit()方法。

于 2013-08-14T08:52:53.860 回答