docs.unity.cn
    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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023