CameraShakeWhenHit Class

Summary

Applies some PlatformerGameKit.CameraShake when taking damage.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["CameraShakeWhenHit"] class Type type-node

Syntax

[AddComponentMenu(Strings.MenuPrefix + "Camera Shake When Hit")]
[PlatformerHelpUrl(typeof(CameraShakeWhenHit))]
public class CameraShakeWhenHit : MonoBehaviour

Remarks

Documentation: Camera Shake

Attributes

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

Properties

Name Value Summary
BaseMagnitude float
Health Health
ScalingMagnitude float

Methods

Name Value Summary
Awake() void
OnValidate() void
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.