Character - CharacterReference

In order to interact with objects in the scene (e.g. Some type of Triggers, Items, Enemies) your character needs a CharacterReference.

A HurtBox serves as the CharacterReference for most Characters, 

TheCharacterReference component is typically added to a child GameObject of the characters model or sprite. This way it will flip when the model or sprite is flipped.

This component also requires some kind of Collider2D (for example a BoxCollider2D) and because it moves should also include a Rigidbody2D.

The Collider2D must be a trigger, the Rigidbody2D must be kinematic with a gravity scale of 0:

 

 

Layers

The default layer for a CharacterReference is the Character layer.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk