docs.unity.cn
    Show / Hide Table of Contents

    Method AllocateString

    AllocateString(ref BlobBuilder, ref BlobString, String)

    Allocates memory to store the string in a blob asset and copies the string data into it.

    Declaration
    public static void AllocateString(this ref BlobBuilder builder, ref BlobString blobStr, string value)
    Parameters
    Type Name Description
    BlobBuilder builder

    The BlobBuilder instance building the blob asset.

    BlobString blobStr

    A reference to the field in the blob asset that will store the string. This function allocates memory for that field and sets the string value.

    String value

    The string to copy into the blob asset.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use