DataComponent size Analyzer

Hi folks,

I created a small Editor window, which lists all data components and their size. It also tells you if you property layout introduce unnecessary padding and can be improved. It does not tell you how to improve it yet though. I am thinking about adding hints.

You can find it on Github:

Here is also a blog post which explains in more detail what kind of problem it solves:

Words of caution: the tool might generate false negatives, so if you see something please let me know in this thread and I can see if it is possible to fix the tool.

Here is a sample screen shot, where you can see that LightComponent in Unity.Rendering.Hybrid package could be 4 bytes smaller ;).

4 Likes

Huh you finally done it :slight_smile:
You can remember me as this guy :slight_smile:

1 Like

Yeah, I don’t know what took me so long to release it on Github :slight_smile: