Skip to content

Combat

The Combat community component (Component) allows you to customize the default hit combo, which includes a right cross, a left hook, and a right uppercut, with a specified duration, animation, and audio for each hit. Additionally, the component enables you to add an idle status for players after they finish hitting, with a looping animation and specified duration.

Property Description
Add attack Determines the amount of attack value that a hit combo adds. Ranges from -999999 to 999999. Default: 46.
Attack Duration The amount of time in seconds that an attack lasts. Ranges from 0.2 to 5. Default: 0.7.
Attack AnimationPicker Determines the source of the attack animation to be played during the attack:
  • BuiltIn: An animation from the built-in system
  • Select: An animation from Asset Library or imported into Studio
Attack Pick Animation Choose a built-in animation clip if AnimationPicker is set to BuiltIn, or an animation clip from Asset Library or uploaded if AnimationPicker is set to Select.
Attack Audio clip Choose the audio clip played during the attack
Idle Duration The amount of time in seconds that the idle status lasts. Ranges from 0.2 to 5. Default: 3.
Idle AnimationPicker Determines the source of the animation to be played during the idle status:
  • BuiltIn: An animation from the built-in system
  • Select: An animation from Asset Library or imported into Studio
Idle Pick Animation Determines the looping animation played when the player character is not in combat. You can choose from built-in clips or select/upload your own animation using the Idle AnimationPicker.

Note:

As this is a global Component, you can attach this Component to any object in the scene. However, it's a best practice to create an empty object named "GameManager" and attach this Component to it.