Search Unity

Proper way to determine that custom editor is not operating in prefab editing mode?

Discussion in 'Prefabs' started by volvis615, Apr 28, 2019.

  1. volvis615

    volvis615

    Joined:
    Nov 10, 2013
    Posts:
    14
    I have a custom editor for a component that should operate only within standard user created scenes.

    Currently, if the component is part of a prefab and user enters the blue editing mode, things go haywire in all manner of ways.

    What is the proposed way to check the component is not being edited within the prefab edit mode?