Search Issue Tracker

Fixed

Votes

4

Found in

4.1.0f4

Issue ID

535459

Regression

No

Error on script with [ExecuteInEditMode] adds a component with hideFlags set to HideAndDontSave

Scripting

-

- Create a script Bar.cs
- Create a script Foo.cs which attribute [ExecuteInEditMode], which adds Bar monoBehaviour to the gameObject and sets its hideFlags property to HideAndDontSave
- Click Play. The error message appears: "Component MonoBehaviour could not be loaded when loading game object. Cleaning up!"

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.