public class AzureSpatialAnchorsScript : MonoBehaviour
public GameObject spherePrefab;
/// Set this string to the Spatial Anchors account id provided in the Spatial Anchors resource.
protected string SpatialAnchorsAccountId = "Set me";
/// Set this string to the Spatial Anchors account key provided in the Spatial Anchors resource.
protected string SpatialAnchorsAccountKey = "Set me";
/// Use the recognizer to detect air taps.
private GestureRecognizer recognizer;
/// True if we are 1) creating + saving an anchor or 2) looking for an anchor.
protected bool tapExecuted = false;
/// The ID of the CloudSpatialAnchor that was saved. Use it to find the CloudSpatialAnchor
protected string cloudSpatialAnchorId = "";
/// The sphere rendered to show the position of the CloudSpatialAnchor.
protected GameObject sphere;
protected Material sphereMaterial;
/// Indicate if we are ready to save an anchor. We can save an anchor when value is greater than 1.
protected float recommendedForCreate = 0;