Я следую этому руководству о том, как создавать мгновенные цели изображения во время выполнения, используя Vuforia . Я следовал каждому шагу, но, похоже, получаю следующую ошибку:
error CS1061: 'ObjectTracker' does not contain a definition for 'RuntimeImageSource' and no accessible extension method 'RuntimeImageSource' accepting a first argument of type 'ObjectTracker' could be found
Я проверил, работают ли другие методы в классе ObjectTracker
, и они работают просто отлично. Кажется, он просто жалуется на RuntimeImageSource
, который согласно документации является общедоступным c свойством ObjectTracker
.
Если документы не устарели.
Используя Visual Studio , я проверил класс ObjectTracker
и получил:
#region Assembly Vuforia.UnityExtensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// C:\Program Files\Unity\Hub\Editor\2018.4.15f1\Editor\Data\PlaybackEngines\VuforiaSupport\Managed\Runtime\Vuforia.UnityExtensions.dll
#endregion
using System.Collections.Generic;
namespace Vuforia
{
//
// Summary:
// The ObjectTracker encapsulates methods to manage DataSets and provides access
// to the ImageTargetBuilder and TargetFinder classes
public class ObjectTracker : Tracker
{
//
// Summary:
// exposes the ImageTargetBuilder member to other classes
public ImageTargetBuilder ImageTargetBuilder { get; }
//
// Summary:
// Activates the given dataset. Datasets can only be activated when the tracker
// is not running.
public bool ActivateDataSet(DataSet dataSet);
//
// Summary:
// Creates a new empty dataset.
public DataSet CreateDataSet();
//
// Summary:
// Deactivates the given dataset. This can only be done when the tracker is not
// running.
public bool DeactivateDataSet(DataSet dataSet);
//
// Summary:
// Deactivates the currently active dataset and destroys all datasets
public void DestroyAllDataSets(bool destroyTrackables);
//
// Summary:
// Destroy the given dataset. Returns false if the given dataset is active.
public bool DestroyDataSet(DataSet dataSet, bool destroyTrackables);
//
// Summary:
// Returns the currently activated datasets.
public IEnumerable<DataSet> GetActiveDataSets();
//
// Summary:
// Returns all datasets.
public IEnumerable<DataSet> GetDataSets();
//
// Summary:
// Gets a new Target finder of the specific type
//
// Returns:
// Instance of TargetFinder
public TargetFinder GetTargetFinder<T>() where T : TargetFinder;
//
// Summary:
// Returns all Target Finders.
public IEnumerable<TargetFinder> GetTargetFinders();
public override bool Start();
public override void Stop();
}
}
, который, как вы можете видеть, не содержит RuntimeImageSource
publi c атрибут.
Документы устарели? Или это потому, что я пользуюсь бесплатной версией Vuforia?
Я спросил на форуме Vuforia без ответа. Я гуглил, но ничего не нашел. Я не могу двигаться вперед без этого.