Search Unity

CustomPropertyDrawer can't restrict multi editing

Discussion in 'Editor & General Support' started by Newcomma, Jul 11, 2016.

  1. Newcomma

    Newcomma

    Joined:
    Feb 10, 2015
    Posts:
    89
    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.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,279
  3. Newcomma

    Newcomma

    Joined:
    Feb 10, 2015
    Posts:
    89
    Great, that does the trick, thank you
     
    karl_jones likes this.