docs.unity3d.com
    Show / Hide Table of Contents

    Method ConstructRoot

    ConstructRoot<T>()

    Creates the top-level fields of a single blob asset.

    Declaration
    public ref T ConstructRoot<T>()
        where T : struct
    Returns
    Type Description
    T

    A reference to the blob data under construction.

    Type Parameters
    Name Description
    T

    A struct that defines the structure of the blob asset.

    Remarks

    This function allocates memory for the top-level fields of a blob asset and returns a reference to it. Use this root reference to initialize field values and to allocate memory for arrays and structs.

    Back to top
    Terms of use
    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