Пример #1
0
    void Update()
    {
        // If there are no meshes, reset the id to default and don't change
        // anything.
        Mesh mesh = xr.GetActiveSurfaceMesh();

        if (mesh == null)
        {
            surfaceId = Int64.MinValue;
            return;
        }

        UpdateMesh(xr.GetActiveSurfaceId(), mesh);
    }