!!!マクロでのOS判定 #if UNITY_EDITOR_WIN // EditorのWin環境の場合. #endif #if UNITY_EDITOR_OSX // EditorのMac環境の場合. #endif #if UNITY_STANDALONE_WIN // スタンドアロンでのWin環境の場合. #endif #if UNITY_STANDALONE_OSX // スタンドアロンでのOSX環境の場合. #endif スクリプトリファレンスの以下を参照。 https://docs.unity3d.com/ja/2018.1/Manual/PlatformDependentCompilation.html ---- {{lastmodified}}