Method GetEnumerator
GetEnumerator()
Gets an enumerator which can be used to iterate over the reference images in this library.
Declaration
public List<XRReferenceImage>.Enumerator GetEnumerator()
Returns
Type | Description |
---|---|
List<XRReferenceImage>.Enumerator | Returns an enumerator which can be used to iterate over the reference images in the library. |
Examples
This examples iterates over the reference images contained in the library.
XRReferenceImageLibrary imageLibrary = ...
foreach (var referenceImage in imageLibrary)
{
Debug.LogFormat("Image guid: {0}", referenceImage.guid);
}