最終更新:2019-07-16 (火) 13:20:28 (32d)  

Unity/プラットフォーム はてなブックマークを見る
Top / Unity / プラットフォーム

Unity/プリプロセッサ
Unity EditorUNITY_EDITOR
macOSUNITY_STANDALONE_OSX?
WindowsUNITY_STANDALONE_WIN?
LinuxUNITY_STANDALONE_LINUX?
WebPlayer?UNITY_WEBPLAYER?
iOSUNITY_IPHONE?
AndroidUNITY_ANDROID?
#if UNITY_EDITOR
#endif

UnityEngine.Application

  • Application.platform
  • UnityEngine.RuntimePlatform
    RuntimePlatform.OSXEditor?In the Unity editor on macOS.
    RuntimePlatform.OSXPlayer?In the player on macOS.
    RuntimePlatform.WindowsPlayer?In the player on Windows.
    RuntimePlatform.WindowsEditor?In the Unity editor on Windows.
    RuntimePlatform.IPhonePlayer?In the player on the iPhone.
    RuntimePlatform.Android?In the player on Android devices.
    RuntimePlatform.LinuxPlayer?In the player on Linux.
    RuntimePlatform.LinuxEditor?In the Unity editor on Linux.
    RuntimePlatform.WebGLPlayer?In the player on WebGL
    RuntimePlatform.WSAPlayerX86?In the player on Windows Store Apps when CPU architecture is X86.
    RuntimePlatform.WSAPlayerX64?In the player on Windows Store Apps when CPU architecture is X64.
    RuntimePlatform.WSAPlayerARM?In the player on Windows Store Apps when CPU architecture is ARM.
    RuntimePlatform.PS4?In the player on the Playstation 4.
    RuntimePlatform.XboxOne?In the player on Xbox One.
    RuntimePlatform.tvOS?In the player on the Apple's tvOS.
    RuntimePlatform.Switch?In the player on Nintendo Switch.

UnityEngine.Debug

  • Debug.isDebugBuild?