Antoshidza / NSprites

Unity DOTS Sprite Rendering Package
Other
536 stars 42 forks source link

Sprites doesn't get rendered before 1st reallocation #9

Closed Antoshidza closed 1 year ago

Antoshidza commented 1 year ago

How to reproduce:

Antoshidza commented 1 year ago

It was common mistake caused by InstancedProperty didn't bind ComputeBuffer to MaterialPropertyBlock in it's own constructor and only does this in Reallocation method, so before 1st reallocation there was no data sent to GPU.