using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CanvasControl : MonoBehaviour
{
private Canvas canvas;
private CanvasScaler canvasScaler;
private Vector2 resolution;
private GameObject Panel;
private GameObject VerticalMenu;
private GameObject HorizontalMenu;
///
/// View系のprefabを表示するGameObject
///
private GameObject ViewSetter;
public bool isVertical
{
get
{
if(resolution.y > 0 && resolution.x > 0)
{
//縦長である場合(同じサイズの場合は横長扱い)
if(resolution.y > resolution.x)
{
return true;
}
}
return false;
}
}
private void Awake()
{
canvas = GetComponent