Loading files
9b89c12bbThis file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Leap.Unity.Layout {
[RequireComponent(typeof(RectTransform))]
public class RectTransformBehaviour : MonoBehaviour {
private RectTransform _rectTransform;
public RectTransform rectTransform {
get {
if (_rectTransform == null) {
_rectTransform = GetComponent<RectTransform>();
}
return _rectTransform;
}
}
}
}