Does Unity API provide a simple solution that will allow me to only allow a single script of a certain type on a Gameobject in the editor like most of the built in components?
asked Jul 23 '11 at 10:46 PM
Well, not really. The best you can do is to use the Reset() event to detect duplicates. But be careful, you can't destroy the instance in Reset().
answered Jul 23 '11 at 11:34 PM