AnimatorComponent.GetLayerHitBox Method
Definition
Namespace: Brine2D.Animation
| Overloads | |
|---|---|
| GetLayerHitBox\(string\) | Returns the primary HitBox of the named layer's current frame, or null if the layer doesn't exist, no animation is playing, or no hitbox is defined. |
| GetLayerHitBox\(string, string\) | Returns a named hit box from the named layer's current frame, or null. |
AnimatorComponent.GetLayerHitBox\(string\) Method
Returns the primary HitBox of the named layer's current frame,
or null if the layer doesn't exist, no animation is playing, or no hitbox is defined.
Parameters
layerName System.String
Returns
AnimatorComponent.GetLayerHitBox\(string, string\) Method
Returns a named hit box from the named layer's current frame, or null.
C#
public System.Nullable<Brine2D.Core.Rectangle> GetLayerHitBox(string layerName, string hitBoxName);
Parameters
layerName System.String
hitBoxName System.String