public void ConnectToAnchor(AnchorPosition target) { var lineDataProvider = GetComponent <SimpleLineDataProvider>(); lineDataProvider.EndPoint = new MixedRealityPose(target.GetTransform().position, Quaternion.identity); var mrLineRenderer = GetComponent <MixedRealityLineRenderer>(); mrLineRenderer.enabled = true; }
public void ConnectToAnchor(AnchorPosition target) { var lineDataProvider = GetComponent <SimpleLineDataProvider>(); lineDataProvider.SetPoint(1, target.GetTransform().position); var mrLineRenderer = GetComponent <MixedRealityLineRenderer>(); mrLineRenderer.enabled = true; }