Question by
Hauthorn · May 23, 2017 at 04:13 PM ·
script.requirecomponent
Is it possible to have RequireComponent auto add two of the same component?
I would like to automatically add a BoxCollider2D as a collider and another as a trigger whenever attaching a specific script. The end goal is to have two BoxCollider2D components attached to the gameobject.
I know RequireComponent can auto add a single component or multiple, different components. But can it add two of the same component?
Comment