Skip to content

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.

public System.Nullable<Brine2D.Core.Rectangle> GetLayerHitBox(string layerName);

Parameters

layerName System.String

Returns

System.Nullable<Rectangle>

AnimatorComponent.GetLayerHitBox(string, string) Method

Returns a named hit box from the named layer's current frame, or null.

public System.Nullable<Brine2D.Core.Rectangle> GetLayerHitBox(string layerName, string hitBoxName);

Parameters

layerName System.String

hitBoxName System.String

Returns

System.Nullable<Rectangle>