Search Unity

Prefab Mode in Play Mode was blocked by the script 'Slider'

Discussion in 'Prefabs' started by noania, Jul 30, 2019.

  1. noania

    noania

    Joined:
    Apr 19, 2014
    Posts:
    33
    I'm starting to really like the new prefab workflows but one thing bothering me is that I get this error a lot and have to exit play mode to edit my prefabs. Since AFAIK it's the only Unity's default UI component that gives you this error(or warning), I'm guessing it's a bug...it has to be a bug but I'm not sure. Is there any way to fix it? Or is there any way to disable [ExecuteInEditMode] attribute of Slider component?
     
    ArtemKuzmenko likes this.
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Thanks for making us aware of this. This is indeed an oversight! We'll get it fixed.

    I don't think there's any workaround apart from compiling your own modified dlls for the UI feature and using those, but that is probably a bit of a hazzle for this.
     
  3. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    Hey @runevision! Did this get fixed in a recent version of Unity? I'm on 2019.1.14f, seeing this somewhat annoying issue, and hoping that updating may fix it?
     
    StevenWu1999 likes this.
  4. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Yes it's fixed in 2019.2.8f1 and 2019.3.0a12.
     
    StevenWu1999 and _Adriaan like this.