- Home /
Prevent adding certain components
I have made my own component which conflicts with some Unity built-in components (like Rigidbody conflicts with Rigidbody2D). So I need to be sure that those components will not exist together in the same GameObject. Is there a way to do it? It seems to be easy to check when my own component added (by Reset), but what to do if Unity' built-in component is added? Is there some callback, message, or event sent when new component attached to the GameObject?
Comment
Your answer

Follow this Question
Related Questions
2D Animation does not start 1 Answer
Fusion 360 to Unity with Multiple Components? 1 Answer
Is it okay to reference a child's parent? 1 Answer
Unity can't see any scripts 0 Answers
Character controller component floating 2 Answers