Example #1
0
    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;
    }
Example #2
0
    public void ConnectToAnchor(AnchorPosition target)
    {
        var lineDataProvider = GetComponent <SimpleLineDataProvider>();

        lineDataProvider.SetPoint(1, target.GetTransform().position);
        var mrLineRenderer = GetComponent <MixedRealityLineRenderer>();

        mrLineRenderer.enabled = true;
    }