docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConstructComponentFromBuffer

    ConstructComponentFromBuffer(TypeIndex, void*)

    Used by codegen. Create an instance of a component type from a given buffer of data

    Declaration
    public static object ConstructComponentFromBuffer(TypeIndex typeIndex, void* data)
    Parameters
    Type Name Description
    TypeIndex typeIndex

    Component type index

    void* data

    Component instance data

    Returns
    Type Description
    object

    Boxed component instance

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