Detect if Unity pro or free

I’m creating a script that needs to find if its being used in the Pro version (to use the GL class), or free version (to use a slower implementation).
Is there any #ifdef for that?
I looked in the documentation, only found how to detect different platforms and editor, but nothing about pro version

There is no ifdef nor any other way. A dirty workaround is to use the check for capabilities and see if render textures are supported. if its false, then you are pretty safe to assume that its not pro :slight_smile:

I see, thanks!
Just another question, not exactly related, but is there a way to hide a component from appearing on the inspector?
I’m creating a component manually, and I don’t want the users to change it directly, but instead change other properties (that will indirectly change the component)

yeah there is one…
i remember while scatering in endless documentation i found something about that…
it even allowed you to make Editor GUI…
go check documentation…

What you are looking for is the Editor class + CustomEditor attribute to control whats exposed and how it works

I realize this is old, but HasProLicense works for me: HasProLicense