Closed mbaker3 closed 9 months ago
Add two more overloads for UnsafeArrayUtility.AsUnsafeArray that represent DynamicBuffer<T> and UnsafeList<T> as UnsafeArray<T> instances
UnsafeArrayUtility.AsUnsafeArray
DynamicBuffer<T>
UnsafeList<T>
UnsafeArray<T>
Users don't have a convenient way to represent a DynamicBuffer<T> or UnsafeList<T> as an UnsafeArray<T>.
Users can now call AsUnsafeArray on both DynamicBuffer<T> and UnsafeList<T> instances.
AsUnsafeArray
Add two more overloads for
UnsafeArrayUtility.AsUnsafeArray
that representDynamicBuffer<T>
andUnsafeList<T>
asUnsafeArray<T>
instancesWhat is the current behaviour?
Users don't have a convenient way to represent a
DynamicBuffer<T>
orUnsafeList<T>
as anUnsafeArray<T>
.What is the new behaviour?
Users can now call
AsUnsafeArray
on bothDynamicBuffer<T>
andUnsafeList<T>
instances.What issues does this resolve?
What PRs does this depend on?
Does this introduce a breaking change?