Search Unity

ObjectField isn't selecting object in scene/assets

Discussion in 'Immediate Mode GUI (IMGUI)' started by Benjaben22, Aug 19, 2014.

  1. Benjaben22

    Benjaben22

    Joined:
    Oct 26, 2012
    Posts:
    75
    I have an object field in my InspectorGUI and I have dragged a gameobject from my assets folder in it (Assets/Prefabs/gameobject.prefab). But when I select that object in the inspector my editor doesn't open up Assets/Prefabs. I've tested it with other objects, other scripts, even with built-in Unity inspector uis (materials), and none of them will take me to that object in my assets. Is there a preference somewhere in the editor for disabling/enabling this?
     
  2. Benjaben22

    Benjaben22

    Joined:
    Oct 26, 2012
    Posts:
    75
    I just made an empty project as well with no scripts or anything in it besides a material named Test, and a jpg file "grass.jpg". I dropped the grass onto texture slot of the material, dragged the material onto a premade cube prefab. Now when I select the texture from the cube in the Texture Field of the material, it doesn't bring up the texture in the assets.
     
  3. Benjaben22

    Benjaben22

    Joined:
    Oct 26, 2012
    Posts:
    75