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

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?

1 Like

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 Likes

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?

1 Like

Yes it’s fixed in 2019.2.8f1 and 2019.3.0a12.

2 Likes