Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    134
    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:
    134
    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.