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