Search Unity

Custom right click functionality for objects in the inspector

Discussion in 'Scripting' started by petarnordeus, Aug 20, 2019.

  1. petarnordeus

    petarnordeus

    Joined:
    Aug 4, 2017
    Posts:
    8
    Capture.PNG

    Hey guys,
    I would like to build a custom right click options for the materials (and other objects) that are assigned in the inspector. Is there a way to do this?
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    There was ContextMenuItemAttribute or something llike that.