private RectTransform ensureGraphicHasRect(LeapGraphic graphic)
    {
        var rectTransform = graphic.GetComponent <RectTransform>();

        if (rectTransform == null)
        {
            initRectTransform(graphic.gameObject);
        }
        return(rectTransform);
    }
Example #2
0
 public static GraphicCallbackInfo.GraphicInfo OnStart(this LeapGraphic graphic)
 {
     return(graphic.GetComponent <GraphicCallbackInfo>().startInfo);
 }
Example #3
0
 public static GraphicCallbackInfo.GraphicInfo OnEnable(this LeapGraphic graphic)
 {
     return(graphic.GetComponent <GraphicCallbackInfo>().enableInfo);
 }