Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnsafePtrList<T>.ReadOnly

A read only for an UnsafePtrList\<T\>.
Read time 1 minuteLast updated 13 days ago

Definition

public struct UnsafePtrList<T>.ReadOnly

Remarks

Use UnsafePtrList<T>.AsReadOnly to create a read only for a list.

Fields

Value

Description

LengthThe number of elements.
PtrThe internal buffer of the list.

Properties

Property

Description

IsCreatedWhether this list has been allocated (and not yet deallocated).
IsEmptyWhether the list is empty.

Methods

Method

Description

ContainsReturns true if the list contains at least one occurrence of a specific pointer.
IndexOfReturns the index of the first occurrence of a specific pointer in the list.