Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Screen.currentResolution

マニュアルに切り替える
public static Resolution currentResolution;

説明

現在の画面の解像度(読み取り専用)

プレーヤーがウィンドウモードで実行している場合、現在のデスクトップの解像度を返します。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(Screen.currentResolution); } }