Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Can't get path/reference to prefab inside Isolated Scene/Prefab Mode!!!

Discussion in 'Prefabs' started by Nirvan, Jan 30, 2020.

  1. Nirvan

    Nirvan

    Joined:
    Nov 16, 2013
    Posts:
    100
    I need to get reference to prefab asset or path to it for editor mode purposes. (adding/removing subAssets)
    When object is inside isolated scene/Prefab mode paradoxically any method from PrefabUtility to identify prefab is not working and AssetDatabase.GetAsetPath always returns empty string.
    (only when clicking "save" or autosaving this methods are working but I need reference all the time)
     
    Last edited: Jan 30, 2020
  2. Nirvan

    Nirvan

    Joined:
    Nov 16, 2013
    Posts:
    100
    Hello? Anybody?
    I need it in urgent :/ It is really so hard to get to know what is being edited?
    I don't need it for build, only editor purposes.
     
unityunity