概要
Risk of unwanted modifications The following scripts on the Prefab open ion Prefab Mode use the [ExecuteInEditMode] attribute which means they may accidentally affect or be affected by Play Mode: XXXX See the documentation for [ExecuteInEditMode] and [ExecuteAlways] for info on how to make scripts compatible with Prefab Mode during Play Mode.
プレハブモードの状態で Unity を再生した時に上記の警告が表示される場合は
[ExecuteInEditMode] public class Example : MonoBehaviour {
プレハブモード内の MonoBehaviour で ExecuteInEditMode を使用している箇所を
[ExecuteAlways] public class Example : MonoBehaviour {
ExecuteAlways に置き換えると警告が出なくなります