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

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