Search Unity

Turning off custom property drawer

Discussion in 'Scripting' started by mrm83, Apr 24, 2020.

  1. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    345
    So I made a custom property drawer from one of my scriptableobject and it is working fine. The drawer is showing on all objects that uses it.. however, is it possible to disable it for certain objects and just render the default?

    ie:
    ABC = my custom drawer

    class a:
    var ABC; // shows custom drawer

    class b:
    var ABC; // show default drawer
     
  2. ABerlemont

    ABerlemont

    Joined:
    Sep 27, 2012
    Posts:
    67
    I'd love to do the same.
    If you (or anyone) knows how :)