Search Unity

AddChildOfAsset() with ScriptableObject parent

Discussion in 'Immediate Mode GUI (IMGUI)' started by MattRix, Jul 28, 2015.

  1. MattRix

    MattRix

    Joined:
    Aug 23, 2011
    Posts:
    121
    I have a ScriptableObject that I want to add child assets to in the project view, however when I add them to the ScriptableObject, Unity creates a new UnityEngine.Object parent folder object, and then puts my ScriptableObject inside that.

    Is there any way to make the ScriptableObject itself act like a container?
     
    Last edited: Jul 28, 2015
  2. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    The only way I've found to get this working is set hideFlags = HideFlags.HideInHierarchy on the child ScriptableObject