RequireCollider2D

  06. Attributes No Comments

When added before a component class will make sure that whenever the component with the attribute is added to GameObjects, a 2D collider will also be present on the same GameObject.

Attribute Target

Component class

 

See also: RequireCollider