Application.platform
public static RuntimePlatform platform;
RuntimePlatform 값을 리턴함으로 이 것을 이용하여 조건문을 짜려면,
아래와 같은 방식으로 이용하면 된다.
if( Application.platform == RuntimePlatform.Windows.Player )
RuntimePlatform 레퍼런스 : http://docs.unity3d.com/ScriptReference/RuntimePlatform.html
런타임플랫폼의 값
OSXEditor - In the Unity editor on Mac OS X.
OSXPlayer - In the player on Mac OS X.
WindowsPlayer - In the player on Windows.
OSXWebPlayer - In the web player on Mac OS X.
OSXDashboardPlayer - In the Dashboard widget on Mac OS X.
WindowsWebPlayer - In the web player on Windows.
WindowsEditor - In the Unity editor on Windows.
IPhonePlayer - In the player on the iPhone.
XBOX360 - In the player on the XBOX360.
PS3 - In the player on the Play Station 3.
Android - In the player on Android devices.
LinuxPlayer - In the player on Linux.
WebGLPlayer - In the player on WebGL?
WSAPlayerX86 - In the player on Windows Store Apps when CPU architecture is X86.
WSAPlayerX64 - In the player on Windows Store Apps when CPU architecture is X64.
WSAPlayerARM - In the player on Windows Store Apps when CPU architecture is ARM.
WP8Player - In the player on Windows Phone 8 device.
TizenPlayer - In the player on Tizen.
PSP2 - In the player on the PS Vita.
PS4 - In the player on the Playstation 4.
XboxOne - In the player on Xbox One.
SamsungTVPlayer - In the player on Samsung Smart TV.
'- > Unity3D 5.x' 카테고리의 다른 글
Unity3D 5.1.2f에서 SVN을 이용한 버전관리를 해보자. (0) | 2015.09.03 |
---|---|
유니티3D 진동 발생시키기 (0) | 2015.07.25 |
유니티3D, 화면 기준으로 2d 좌표를 3d 좌표로 혹은 반대로 (0) | 2015.06.16 |
유니티3D, 게임 오브젝트를 특정 대상을 바라보게 하기 (0) | 2015.05.26 |
유니티3D, 가속도 센서 (0) | 2015.05.14 |
댓글