- Home /
When I Multi-select gameobjects and press 'delete' 'OnDestroy' func is not called?
When I select a single gameobject in scene and press 'delete'. The OnDisable()/OnDestroy() is called. But when I multi-select them and press 'delete' nothing happened. Can anyone help?
OnDestroy is written in Editor class.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613162108im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
OnDestroy() callback in Editor upon deleting selected GameObject - del key 5 Answers
OnValidate() not called when stored ScriptableObject is called 0 Answers
Editor script - any callback when target is first instantiated? 1 Answer
DrawGizmo attribute: GizmoType arg with incompatible flag values 0 Answers
How do I detect that MonoBehaviour is modified in the Editor? 2 Answers