Struct BlobPtr<T> | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Struct BlobPtr<T>

    A pointer referencing a struct, array, or field inside a blob asset.

    Namespace: Unity.Entities
    Syntax
    public struct BlobPtr<T>
        where T : struct
    Type Parameters
    Name Description
    T

    The data type of the referenced object.

    Properties

    Value

    The value, of type T to which the pointer refers.

    Declaration
    public T Value { get; }
    Property Value
    Type Description
    T
    Remarks

    The property is a reference return.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the pointer does not reference a valid instance of a data type.

    Methods

    GetUnsafePtr()

    Provides an unsafe pointer to the referenced data.

    Declaration
    public void *GetUnsafePtr()
    Returns
    Type Description
    Void*

    An unsafe pointer.

    Remarks

    You can only use unsafe pointers in contexts.

    See Also

    BlobBuilder
    In This Article
    • Properties
      • Value
    • Methods
      • GetUnsafePtr()
    • See Also
    Back to top
    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