Warning: Declaration of action_plugin_linebreak::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php on line 41

Warning: Declaration of action_plugin_markdownextra::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/markdownextra/action.php on line 16

Warning: Declaration of action_plugin_syntaxhighlighter3_action::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/syntaxhighlighter3/action/action.php on line 28
027 OSの判別方法について [stepism@UE4メモ]

ユーザ用ツール

サイト用ツール


wiki:unity:tips:027

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
wiki:unity:tips:027 [2015/01/06 14:14]
step
— (現在)
ライン 1: ライン 1:
-====== 027 OSの判別方法について ====== 
-  
-===== 概要 ===== 
-SystemInfo.operatingSystem.Containsを使えば、アプリを実行するOSが何なのかを判別できます。 
- 
-<code csharp> 
-if( SystemInfo.operatingSystem.Contains("​Windows"​) ) 
-{ 
- Debug.Log("​Windows!"​);​ 
-} 
- 
-if( SystemInfo.operatingSystem.Contains("​Mac"​) ) 
-{ 
- Debug.Log("​Mac!"​);​ 
-} 
- 
-if( SystemInfo.operatingSystem.Contains("​Android"​) ) 
-{ 
- Debug.Log("​Android!"​);​ 
-} 
- 
-if( SystemInfo.operatingSystem.Contains("​iPhone"​) ) 
-{ 
- Debug.Log("​iPhone!"​);​ 
-} 
-</​code>​ 
  
wiki/unity/tips/027.1420553660.txt.gz · 最終更新: 2015/01/06 14:14 by step