Search Unity

Question How to extend build-in asset inspector

Discussion in 'Editor & General Support' started by EP-Toushirou, Jan 15, 2021.

  1. EP-Toushirou

    EP-Toushirou

    Joined:
    Nov 19, 2019
    Posts:
    40
    hello,I want to add some comment and button on some asset's(etc.prefab,timeline asset) inspector,
    how can I extend them?
    all assets' type can extend is the best
    Thank you.
    upload_2021-1-15_9-50-8.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,736
    Are you just asking how to make a custom inspector? That's easy, just look for the tutorials all over Youtube.
     
  3. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,317
    Unfortunately, it doesn't seem easily possible to extend the editor for built-ins that already have custom editor logic.
     
  4. EP-Toushirou

    EP-Toushirou

    Joined:
    Nov 19, 2019
    Posts:
    40
    Hello,I want to extend the exist asset, such as timeline asset, for example, I want to add a MyFrameRate property on it.
     
  5. EP-Toushirou

    EP-Toushirou

    Joined:
    Nov 19, 2019
    Posts:
    40
    Yeah,I google it and I can't find a good way go extend it,so I come to the forum to ask.
    Thanks for reply