うにてぃブログ

主にUnityとC#に関する記事を書いていきます

PauseStateChanged

【Unity】UnityEditor の再生、停止、一時停止をハンドルする

Unity 2017.3以降 EditorApplication.playModeStateChanged と EditorApplication.pauseStateChanged を利用することで各種タイミングに合わせて処理をすることができます using UnityEditor; using UnityEngine; public static class SamplePlayModeStateCh…