Skip to content

AnimatorComponent.GetCurrentHitBox(string) Method

Definition

Namespace: Brine2D.Animation

Returns the named hit box from the primary animator's current frame, or null if no animation is playing or the named box is not defined on the current frame.

public System.Nullable<Brine2D.Core.Rectangle> GetCurrentHitBox(string name);

Parameters

name System.String

Returns

System.Nullable<Rectangle>