Skip to content

SpriteFrame.Clone() Method

Definition

Namespace: Brine2D.Animation

Creates a shallow clone of this frame with the same visual properties, hit boxes, and user data. OnEnter and OnExit event subscriptions are \<em>not\</em> copied — the clone starts with no subscribers. The clone is not registered as belonging to any AnimationClip; add it to a clip via AddFrame\(SpriteFrame\) as normal.

C#
public Brine2D.Animation.SpriteFrame Clone();

Returns

SpriteFrame