[SerializeField] performance impact?

Hey! So I’m fairly certain the answer is “No.”, but I’d rather ask a “dumb” question than just make an assumption.

I realise making things public for the sake of viewing them in the inspector isn’t needed (hence why we have [SerializeField] ), but is this something I’d have to worry about removing from all of my code once its ready for public release, or does it make no difference at all when it comes to performance?

Cheers!

1 Like

The answer is “No”. This attribute is for the inspector, and you will not be releasing the inspector.

1 Like

Thanks a lot! This makes sense when you put it that way.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms