HitTrigger Class

Summary

A component which uses a UnityEngine.PolygonCollider2D trigger to PlatformerGameKit.Hit things.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["HitTrigger"] class Type type-node

Syntax

[AddComponentMenu(Strings.MenuPrefix + "Hit Trigger")]
[HelpURL(Strings.APIDocumentation + "/" + nameof(HitTrigger))]
public sealed class HitTrigger : MonoBehaviour

Remarks

Documentation: Melee Attacks

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties

Name Value Summary
Character Character
Collider PolygonCollider2D
Data HitData
HitLayers int
The physics layers targeted by attacks.
static
Ignore HashSet<Hit.ITarget>
Parent Transform
Transform Transform

Methods