Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

UnsafeUntypedBufferAccessor

struct in Unity.Entities.LowLevel.Unsafe

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Allow untyped access to buffers data in a chunk. The use of untyped accessor is in general not recommended and should be exploited only in very specific use case scenario.

Properties

Property Description
ElementSize The size (in bytes) of a single buffer element.
Length The number of buffers in the chunk.

Public Methods

Method Description
GetBufferCapacity Gets the current capacity of the buffer at the given index in the chunk
GetBufferLength Gets the current size of the buffer at the given index in the chunk
GetUnsafePtr Gets the unsafe pointer to buffer elements at the given index in the chunk
GetUnsafePtrAndLength The unsafe pointer and length for the buffer at the given index in the chunk
GetUnsafeReadOnlyPtr Gets the read-only unsafe pointer to buffer elements at the given index in the chunk
GetUnsafeReadOnlyPtrAndLength The read-only unsafe pointer and length for the buffer at the given index in the chunk
ResizeUninitialized Increases the buffer capacity and length of the buffer associated to the entity at the given index in the chunk