On the ARTrackedImageManager script - is it possible to change which tracking set (SerializedLibrary variable) is used at runtime?
I’ve tried:
[SerializeField] ARTrackedImageManager trackedImageManager;
[SerializeField] XRReferenceImageLibrary otherlib;
//later in code triggered on a button press
trackedImageManager.subsystem.CreateRuntimeLibrary(otherlib);
But it always logs an error of a null reference for the CreateRuntimeLibrary line (I’m indeed setting the serialized fields in the inspector and have debugged both variables are set).
Looking into the ARTrackedImageManager script it seems there is an idea of an event for ’
trackedImagesChanged’, but I can’t seem to figure out how to actually change it at runtime myself.
Any advice would be greatly appreciated.