Summary
Information about when and how to activate a
PlatformerGameKit.HitTrigger during an attack animation.- Assembly
- PlatformerGameKit
.dll - Namespace
- PlatformerGameKit
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["HitData"]
class Type type-node
Syntax
[Serializable]
public sealed class HitData
Remarks
Documentation:
Melee Attacks
Attributes
| Type | Description |
|---|---|
| Serializable |
Properties
| Name | Value | Summary |
|---|---|---|
| Angle | float |
[
UnityEngine.SerializeField]
The direction in which the PlatformerGameKit.HitData.Force is applied (in degrees).
|
| Area | Vector2[] |
[
UnityEngine.SerializeField]
The outline of the area affected by this hit.
|
| Damage | int |
[
UnityEngine.SerializeField]
The amount of damage this hit deals.
|
| EndTime | float |
[
UnityEngine.SerializeField]
The Animancer.AnimancerState.Time when this hit becomes inactive.
|
| Force | float |
[
UnityEngine.SerializeField]
The knockback PlatformerGameKit.Hit.force applied to objects by this hit.
|
| StartTime | float |
[
UnityEngine.SerializeField]
The Animancer.AnimancerState.Time when this hit becomes active.
|
Methods
| Name | Value | Summary |
|---|---|---|
| AngleToDirection |
Vector2 |
static
|
| AngleToDirection |
Vector2 |
static
|
| DirectionToAngle |
float |
static
|
| GetDescription |
string | |
| InitializeEvents |
void |
static
|
| IsActiveAt |
bool | |
| ToString |
string |