private RectTransform ensureGraphicHasRect(LeapGraphic graphic) { var rectTransform = graphic.GetComponent <RectTransform>(); if (rectTransform == null) { initRectTransform(graphic.gameObject); } return(rectTransform); }
public static GraphicCallbackInfo.GraphicInfo OnStart(this LeapGraphic graphic) { return(graphic.GetComponent <GraphicCallbackInfo>().startInfo); }
public static GraphicCallbackInfo.GraphicInfo OnEnable(this LeapGraphic graphic) { return(graphic.GetComponent <GraphicCallbackInfo>().enableInfo); }