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")]
[PlatformerHelpUrl(typeof(HitTrigger))]
public class HitTrigger : MonoBehaviour

Remarks

Documentation: Melee Attacks

Attributes

Type Description
AddComponentMenu
PlatformerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Platformer Game Kit's documentation.

Properties

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

Methods

Name Value Summary
Activate(Character, HitData, bool, HashSet<Hit.ITarget>) HitTrigger
static
Deactivate() void
FixedUpdate() void
OnValidate() void
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.
PreAllocate(int) void
static