浏览代码

Print the reference image's name, instead of trackableId

/1.5-preview
Tim Mowrer 6 年前
当前提交
100427ef
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/Scenes/ImageTracking/TrackedImageInfoManager.cs

4
Assets/Scenes/ImageTracking/TrackedImageInfoManager.cs


// Update information about the tracked image
var text = canvas.GetComponentInChildren<Text>();
text.text = string.Format(
"trackableId\n{0}\ntrackingState: {1}\nGUID: {2}\nReference size: {3} cm\nDetected size: {4} cm",
trackedImage.trackableId,
"{0}\ntrackingState: {1}\nGUID: {2}\nReference size: {3} cm\nDetected size: {4} cm",
trackedImage.referenceImage.name,
trackedImage.trackingState,
trackedImage.referenceImage.guid,
trackedImage.referenceImage.size * 100f,

正在加载...
取消
保存