docs.unity3d.com
    Show / Hide Table of Contents

    Class RangeIterator

    Convenience class to convert a UsdPrimRange into something easily enumerable. Note that UsdPrimRange returns an instance of this class to implement IEnumerable.

    Inheritance
    Object
    RangeIterator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: USD.NET
    Syntax
    public class RangeIterator : IEnumerable<UsdPrim>, IEnumerable, IEnumerator<UsdPrim>, IDisposable, IEnumerator

    Constructors

    RangeIterator(UsdPrimRange)

    Declaration
    public RangeIterator(UsdPrimRange range)
    Parameters
    Type Name Description
    UsdPrimRange range

    Properties

    Current

    Declaration
    public UsdPrim Current { get; }
    Property Value
    Type Description
    UsdPrim
    Implements
    IEnumerator<T>.Current

    Methods

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()

    GetEnumerator()

    Declaration
    public IEnumerator<UsdPrim> GetEnumerator()
    Returns
    Type Description
    IEnumerator<UsdPrim>
    Implements
    IEnumerable<T>.GetEnumerator()

    IsPostVisit()

    Indicates if this is the post-visit pass of a pre- and post-traversal iteration. https://github.com/PixarAnimationStudios/USD/blob/master/pxr/usd/lib/usd/primRange.h#L157

    Declaration
    public bool IsPostVisit()
    Returns
    Type Description
    Boolean

    MoveNext()

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean
    Implements
    IEnumerator.MoveNext()

    PruneChildren()

    Prunes all childeren below the current prim. https://github.com/PixarAnimationStudios/USD/blob/master/pxr/usd/lib/usd/primRange.h#L162

    Declaration
    public void PruneChildren()

    Reset()

    Declaration
    public void Reset()
    Implements
    IEnumerator.Reset()

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator
    Implements
    IEnumerable.GetEnumerator()

    IEnumerator.Current

    Declaration
    object IEnumerator.Current { get; }
    Returns
    Type Description
    Object
    Implements
    IEnumerator.Current
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Thursday, October 19, 2023