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 readonly ref 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