using UnityEngine;
namespace WebGLSupport.Detail
{
public static class Support
{
///
/// 画面内の描画範囲を取得する
///
///
///
public static Rect GetScreenCoordinates(RectTransform uiElement)
{
var worldCorners = new Vector3[4];
uiElement.GetWorldCorners(worldCorners);
// try to support RenderMode:WorldSpace
var canvas = uiElement.GetComponentInParent