MaxstARSDK  3.5.0
AbstractObjectTrackableBehaviour.cs
1 /*==============================================================================
2 Copyright 2017 Maxst, Inc. All Rights Reserved.
3 ==============================================================================*/
4 
5 using UnityEngine;
6 using System.IO;
7 using JsonFx.Json;
8 using System.Collections;
9 using System.Collections.Generic;
10 using System.Collections.Specialized;
11 using System;
12 using System.Linq;
13 using System.Runtime.InteropServices;
14 using System.Text;
15 using UnityEngine.Rendering;
16 
17 namespace maxstAR
18 {
23  {
24  void Start()
25  {
26  AbstractMapViewerBehaviour mapViewerBehaviour = FindObjectOfType<AbstractMapViewerBehaviour>();
27  if (mapViewerBehaviour != null)
28  {
29  DestroyImmediate(mapViewerBehaviour.gameObject);
30  }
31  }
32 
37  protected override void OnTrackerDataFileChanged(string trackerFileName)
38  {
39  if (trackerFileName == null || trackerFileName.Length == 0)
40  {
41  return;
42  }
43 
44  TrackableId = null;
45  TrackableName = Path.GetFileNameWithoutExtension(trackerFileName);
46  int startIdx = trackerFileName.LastIndexOf("/") + 1;
47  int endIdx = trackerFileName.LastIndexOf(".");
48  if (endIdx > startIdx)
49  {
50  string fileName = trackerFileName.Substring(startIdx, endIdx - startIdx);
51  }
52  }
53  }
54 }
Handles 3D map file for authoring. Map controller includes mappoint controller and keyframe controlle...
string TrackableName
Tracking file name only without extention.
string TrackableId
Tracking file uuid. This value is addressed in tracking file.
override void OnTrackerDataFileChanged(string trackerFileName)
Notify 3dmap file is changed.
Serve 3dmap file recognition and tracking
Parent class of all TrackableBehaviour. Save tracking file&#39;s id (uuid), name, path etc...