Class XRReferenceImageLibrary
A reference image library is a collection of images to search for in the physical environment when image tracking is enabled.
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
[CreateAssetMenu(fileName = "ReferenceImageLibrary", menuName = "XR/Reference Image Library", order = 1001)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/manual/image-tracking.html")]
public class XRReferenceImageLibrary : ScriptableObject, IReferenceImageLibrary, ISerializationCallbackReceiver, IEnumerable<XRReferenceImage>, IEnumerable
Remarks
Image libraries are immutable at runtime. To create and manipulate an image library via Editor scripts, see the extension methods in XRReferenceImageLibraryExtensions. If you need to mutate the library at runtime, see MutableRuntimeReferenceImageLibrary.
Properties
Name | Description |
---|---|
this[int] | Get an image by index. |
count | The number of images in the library. |
dataStore | (Read Only) Binary data associated with a string key. |
guid | A |
Methods
Name | Description |
---|---|
GetEnumerator() | Gets an enumerator which can be used to iterate over the reference images in this library. |
indexOf(XRReferenceImage) | Get the index of |