Method CreateRuntimeLibrary
CreateRuntimeLibrary(XRReferenceImageLibrary)
Creates a UnityEngine.XR.ARSubsystems.RuntimeReferenceImageLibrary
from an existing
UnityEngine.XR.ARSubsystems.XRReferenceImageLibrary
or an empty library if serializedLibrary
is null
.
Use this to construct reference image libraries at runtime. If the library is of type
MutableRuntimeReferenceImageLibrary
, it is modifiable at runtime.
Declaration
public RuntimeReferenceImageLibrary CreateRuntimeLibrary(XRReferenceImageLibrary serializedLibrary = null)
Parameters
Type | Name | Description |
---|---|---|
XRReferenceImageLibrary | serializedLibrary | An existing |
Returns
Type | Description |
---|---|
RuntimeReferenceImageLibrary | A new |
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown if there is no subsystem. This usually means image tracking is not supported. |