docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Cast

    Cast<T>(object)

    Cast into the proper type.

    Declaration
    protected T Cast<T>(object o) where T : class
    Parameters
    Type Name Description
    object o

    Object to be cast

    Returns
    Type Description
    T

    Returns o cast to type T

    Type Parameters
    Name Description
    T

    Type of the drawer

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)