-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
com.unity.xr.magicleap@6.3.0-preview.1
## [6.3.0-preview.1] - 2021-06-28 - Update the Image Tracking subsystem to create the Image Tracker disabled and synchronously. - Explicitly add a way to increment the reference count of the Native Image Tracker to allow for external code to clean up the tracker. - Emit XRInputSubsystem.trackingOriginUpdated event when Lumin reports a new tracking session. - Fix a compiler warning about unused format arguments. - Fixed a new issue with unity 2021.2.0a14 where building a lumin project gives an error (Fixes FB# 1328078) - Fixed an issue where `isTracked` and `TrackingState` were not getting updated correctly (Fixes FB# 1175008) - Addressed a case where getting the best controller may not return a valid controller.
- Loading branch information
Unity Technologies
committed
Jun 28, 2021
1 parent
c815dd4
commit debd3de
Showing
11 changed files
with
202 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 35 additions & 9 deletions
44
Editor/ImageDatabase/MagicLeapImageDatabaseLibraryCache.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,49 @@ | ||
using UnityEngine.XR.MagicLeap; | ||
|
||
using UnityEngine; | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace UnityEditor.XR.MagicLeap | ||
{ | ||
[Serializable] | ||
public class ImageDatabaseEntry | ||
{ | ||
public string assetGuid; | ||
[SerializeField] | ||
private long _timestamp; | ||
|
||
/// <summary> | ||
/// Getter/Setter to map the 'DateTime' we store for the entry vs what we can serialize | ||
/// - note that the JSONUtility class cannot serialize a DateTime | ||
/// </summary> | ||
public DateTime timeStamp | ||
{ | ||
get | ||
{ | ||
return DateTime.FromFileTimeUtc(_timestamp); | ||
} | ||
set | ||
{ | ||
_timestamp = value.ToFileTimeUtc(); | ||
} | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// A scriptable object that is used to cache image library binary blob | ||
/// generation data to prevent rebuilds everytime the user presses play in | ||
/// the editor. | ||
/// </summary> | ||
public class MagicLeapImageDatabaseLibraryCache : ScriptableObject | ||
[Serializable] | ||
public class MagicLeapImageDatabaseLibraryCache | ||
{ | ||
public MagicLeapImageDatabaseLibraryCache() | ||
{ | ||
m_ImageLibraryCache = new List<ImageDatabaseEntry>(25); | ||
} | ||
|
||
/// <summary> | ||
/// The dictionary that maps all image database assets to the cache. | ||
/// </summary> | ||
[Obsolete("To be removed when we bump the major version", true)] | ||
public Dictionary<string, DateTime> m_LibraryCache; | ||
|
||
public List<ImageDatabaseEntry> m_ImageLibraryCache; | ||
} | ||
} | ||
} |
Oops, something went wrong.