Anchor anchor = session.createAnchor(new Pose(new float[] {0,0,-1}, new float[]{0,0,0,1})); Anchor.CloudAnchorState cloudAnchorState = anchor.getCloudAnchorState(); while (cloudAnchorState.isBeingResolved()) { cloudAnchorState = anchor.getCloudAnchorState(); }
Planes.RaycastResult ray = getPlaneRaycastResult(frame); if (ray == null) { return; } Anchor newAnchor = anchors.createAnchor(ray.hitPose);
Shader "Custom/Dissolve" { Properties{ _MainTex( "Texture", 2D ) = "white" {} _DissolveAmount( "Dissolve Amount", Range(0.0,1.0)) = 0.0 _DissolveColor( "Dissolve Color", Color ) = (1,1,1,1) } SubShader{ Tags{ "Queue" = "Transparent" } CGPROGRAM #pragma