![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Changes collider sizes based on animation state. Use this component if you want to change the shape of the characters colliders for specific aniamtion states/movements. More...
Public Attributes | |
List< ResizeMap > | morphs |
The different collider morphs to apply. More... | |
Protected Member Functions | |
virtual void | Init () |
Init this instance. More... | |
virtual void | PostInit () |
Additional Init performed during start. More... | |
virtual void | ApplyMorph (ColliderResizeInfo morph) |
Apply the given morph More... | |
virtual void | ApplyUnityColliderMorph (UnityColliderResizeInfo morph) |
Applies a morph to a unity collider. More... | |
virtual void | RestoreToDefaults () |
Reset colliders back to defaults. More... | |
Protected Attributes | |
Dictionary< AnimationState, List< ColliderResizeInfo > > | stateToMorphMap |
Maps individual animation states to a morph. More... | |
Dictionary< AnimationState, List< UnityColliderResizeInfo > > | stateToUnityColliderMap |
Maps individual animation states to Unity collider size changes. More... | |
Vector2[] | defaultExtents |
Extents of the default colliders. More... | |
float[] | defaultLengths |
Lengths of the default colliders. More... | |
Dictionary< Collider2D, UnityColliderDetails > | defaultUnityColliders |
Maps colliders to their original settings. More... | |
Character | character |
Character reference More... | |
Properties | |
override string | Header [get] |
Gets the header. More... | |
![]() | |
virtual string | Header [get] |
Gets the header string used to describe the component. More... | |
virtual string | DocLink [get] |
Gets a link to documentation site. More... | |
virtual string | VideoLink [get] |
Gets a link to a youtube video. More... | |
virtual string | Deprecated [get] |
If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More... | |
Additional Inherited Members | |
![]() | |
virtual void | Validate (PlatformerProMonoBehaviour myTarget) |
Override this method if you want to provide custom validation. The actual code should be surrounded by the if UNITY_EDITOR / endif directive. More... | |
Changes collider sizes based on animation state. Use this component if you want to change the shape of the characters colliders for specific aniamtion states/movements.
|
protectedvirtual |
Apply the given morph
morph | Morph. |
|
protectedvirtual |
Applies a morph to a unity collider.
morph | Morph. |
|
protectedvirtual |
Init this instance.
|
protectedvirtual |
Additional Init performed during start.
|
protectedvirtual |
Reset colliders back to defaults.
|
protected |
Character reference
The character.
|
protected |
Extents of the default colliders.
|
protected |
Lengths of the default colliders.
|
protected |
Maps colliders to their original settings.
List<ResizeMap> PlatformerPro.DynamicColliderResizer.morphs |
The different collider morphs to apply.
|
protected |
Maps individual animation states to a morph.
|
protected |
Maps individual animation states to Unity collider size changes.
|
get |
Gets the header.
The header.