CharacterController2D

Provide basic character movement behaviour.

Fields

NameTypeDescription
SpeedFloatSpeed of character movement.
EnableXFlipBoolOnly applicable when there is a SpriteRenderer component on the same GameObject. Enables automatic flipping of the sprite depending on movement direction.
InverseXFlipBoolInverses the default flip direction of the sprite.