CustomPropertyDrawer can't restrict multi editing (632828)

Hi There,

I want to disable multi object editing for any component which has a variable using my CustomPropertyDrawer. However I don’t want to write a new custom editor for every single component that declares this variable type. Is this at all possible?

Alternatively, Unity seems to detect fields which differ in value by putting a hyphen in, ‘-’. Is there a way I can enable this functionality on my CustomPropertyDrawer?

Thanks in advance.

If you are using serialized properties you can use this:

For custom editors you can also use Unity - Scripting API: CanEditMultipleObjects

Great, that does the trick, thank you

1 Like