docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RefHandle<T>

    A class that handles the allocation and disposal of an object. All the different encoders use it.

    Inheritance
    object
    RefHandle<T>
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Media
    Assembly: solution.dll
    Syntax
    public class RefHandle<T> : IDisposable where T : class
    Type Parameters
    Name Description
    T

    The type of object that the handle refers to.

    Constructors

    Name Description
    RefHandle()

    The constructor of the handle.

    RefHandle(T)

    The constructor of the handle.

    Properties

    Name Description
    IsCreated

    Specifies whether the handle has been allocated or not.

    Target

    The target object of the handle.

    Methods

    Name Description
    Dispose()

    Cleans up the handle's resources.

    Dispose(bool)

    Cleans up the handle's resources.

    ~RefHandle()

    The finalizer of the class.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023