I have a NativeArray<Name> that I want to .Reinterpret() into being a NativeArray<FixedString32Bytes>(). It works, but returns a new NativeArray. What I want is for the Reinterpret to put its results into an existing array I specify. Is it possible?
I can for-loop through the array it returns, and individually copy over the elements into where I want them, but that seems inefficient.
#NativeArray.Reinterpret() into an existing array?
1 messages · Page 1 of 1 (latest)
Reinterpret gives you exact same array casted to different type
Oh wild, thanks
modifying reinterpreted array will affect original exactly same way