Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created April 20, 2024 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baba-s/e206e941f93b4f30d0503062720dd9f0 to your computer and use it in GitHub Desktop.
Save baba-s/e206e941f93b4f30d0503062720dd9f0 to your computer and use it in GitHub Desktop.
using System.Collections;
using UnityEngine;
public class Example : MonoBehaviour
{
private IEnumerator Start()
{
Screen.SetResolution( 640, 480, true );
yield return null;
Debug.Log( $"変更前:{Display.main.systemWidth} x {Display.main.systemHeight}" );
Debug.Log( $"変更後:{Display.main.renderingWidth} x {Display.main.renderingHeight}" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment