Search Unity

Can EditorWindow display inspector for existing prefab?

Discussion in 'Scripting' started by hippocoder, Jan 4, 2014.

  1. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I'd like to have a set of prefabs which I can edit in a custom window as opposed to the inspector, for ease of use by the level designer. Is this possible?

    I imagine being able to reference a prefab in resources folder and be able to edit it's details within a custom EditorWindow for convenience. I'd ideally like to not have to make an entire script to do this, but just an Editor script if at all possible.

    Thanks for any replies and insights.
     
    CharlieSamways likes this.
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    Yes, it's totally possible.

    Sadly, no screenshot of that around, but I did an editor for an autogenerated game that handles prefab in a special way.

    There's not much that is "impossible"... Just depend how much time and energy you're willing to put into it.
     
  3. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    OK I'll look into it - thanks.