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
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
XRReference
Properties
Name | Description |
---|---|
this[int] | Get an image by index. |
count | The number of images in the library. |
data |
(Read Only) Binary data associated with a string key. |
guid | A |
Methods
Name | Description |
---|---|
Get |
Gets an enumerator which can be used to iterate over the reference images in this library. |
index |
Get the index of |