/// <summary> /// Set loop mode. /// </summary> private void SetLoopMode(LoopMode2D loopMode) { Runtime.ValidateRefCounted(this); AnimatedSprite2D_SetLoopMode(handle, loopMode); }
/// <summary> /// Set animation by name and loop mode. /// </summary> public void SetAnimation(string name, LoopMode2D loopMode = LoopMode2D.Default) { Runtime.ValidateRefCounted(this); AnimatedSprite2D_SetAnimation(handle, name, loopMode); }
internal static extern void AnimatedSprite2D_SetLoopMode(IntPtr handle, LoopMode2D loopMode);
internal static extern void AnimatedSprite2D_SetAnimation(IntPtr handle, string name, LoopMode2D loopMode);