Tanoda
|
Explicit boxing class for IIndexableStructs that implements IIndexable. More...
Public Member Functions | |
void | OnSpawn () |
void | OnRecycle () |
void | OnSpawn () |
void | OnRecycle () |
Public Attributes | |
IndexableStruct? | maybeIndexableStruct = null |
The wrapped indexable struct, or null. More... | |
Properties | |
Element? | this[int idx] [get] |
int | Count [get] |
![]() | |
T | this[int idx] [get] |
int | Count [get] |
Explicit boxing class for IIndexableStructs that implements IIndexable.
This is useful when you need to pass an IIndexableStruct into a context that requires an IIndexable and you also need to avoid allocating any garbage. To avoid allocation, you can use the generic Pool to pool instances of this class and pass it around as an IIndexable.
IndexableStruct | : | struct | |
IndexableStruct | : | IIndexableStruct | |
IndexableStruct | : | Element | |
IndexableStruct | : | IndexableStruct |
Definition at line 47 of file IIndexableStruct.cs.
void Leap.Unity.BoxedIndexableStruct< Element, IndexableStruct >.OnRecycle | ( | ) |
Implements Leap.Unity.IPoolable.
Definition at line 79 of file IIndexableStruct.cs.
void Leap.Unity.BoxedIndexableStruct< Element, IndexableStruct >.OnSpawn | ( | ) |
Implements Leap.Unity.IPoolable.
Definition at line 77 of file IIndexableStruct.cs.
IndexableStruct? Leap.Unity.BoxedIndexableStruct< Element, IndexableStruct >.maybeIndexableStruct = null |
The wrapped indexable struct, or null.
Definition at line 56 of file IIndexableStruct.cs.
|
get |
Definition at line 70 of file IIndexableStruct.cs.
|
get |
Definition at line 58 of file IIndexableStruct.cs.