Ejemplo n.º 1
0
 // Unload any underlying ARToolKit structures, and clear the UID.
 public void Unload()
 {
     lock (loadLock) {
         if (UID == NO_ID)
         {
             return;
         }
         // Remove the native trackable, unless arwShutdownAR() has already been called (as it will already have been removed.)
         if (PluginFunctions.inited)
         {
             PluginFunctions.arwRemoveMarker(UID);
         }
         uid      = NO_ID;
         patterns = null;             // Delete the patterns too.
     }
 }
Ejemplo n.º 2
0
    // Unload any underlying ARToolKit structures, and clear the UID.
    public void Unload()
    {
        //ARController.Log(LogTag + "ARMarker.Unload()");

        if (UID == NO_ID)
        {
            //ARController.Log(LogTag + "Marker already unloaded.");
            return;
        }

        if (PluginFunctions.inited)
        {
            // Remove any currently loaded ARToolKit marker.
            PluginFunctions.arwRemoveMarker(UID);
        }

        UID = NO_ID;

        patterns = null;         // Delete the patterns too.
    }