Multi - object editing is not supported

Hi Unity, I never had this problem before. I’m new to Unity kinda! I always come to Unity and leave it again because of reasons. So, I want to do Procedural World Generation, I’m following Sebastian League’s videos and in his second episode he starts coding. At some point in the video he creates a custom editor to make a button pop-up in the inspector and he does it fine. I did this like 10 times and it worked fine but now it says multi - object editing not supported. And I’m mad please tell me how to fix it. I’ll send you the scripts.

7597702–942598–MapGeneratorEditor.cs (440 Bytes)
7597702–942601–MapDisplay.cs (886 Bytes)
7597702–942604–MapGenerator.cs (457 Bytes)
7597702–942607–Noise.cs (743 Bytes)

I don’t know how I’d fixed it nevermind

Anger is not super-useful in software development.

However, googling may turn up surprisingly useful results.

7598419--942769--Screen Shot 2021-10-24 at 7.46.10 AM.png

1 Like

Well, the issue is simply that the editor does not support multi object editing and it probably wouldn’t make much sense. Your problem was simply that you had selected 2 or more objects with your MapGenerator script attached. You just need to select a single object. As soon as you select multiple objects, any active editor that does not support multi object editing will show that warning / error.

The way the GenerateMap method works, it wouldn’t make any sense to call it on multiple objects at the same time since it uses FindObjectOfType to reach out to the MapDisplay script. So multiple instances would overwrite each other. So it’s not really an issue in the code but simply selecting multiple objects in the editor.

1 Like