[Entities] Replace(Int32, T) API for DynamicBuffer<T>

Currently DynamicBuffer has Insert(Int32, T) and RemoveAt(Int32) APIs but still dun have Replace(Int32, T) API that able to just replace to new data directly just like how EntityCommandBuffer.SetComponent(Entity, T) API works. Is there any plan to implement similar API for DynamicBuffer?

Any reason to not just use “buffer[index] = value”?

[ ]'s

1 Like