This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
public static class UIExtensions { | |
// Shared array used to receive result of RectTransform.GetWorldCorners | |
static Vector3[] corners = new Vector3[4]; | |
/// <summary> | |
/// Transform the bounds of the current rect transform to the space of another transform. | |
/// </summary> |