Files
dungeons/Assets/UltimateXR/Runtime/Scripts/Animation/Materials/UxrFlipbookFinishedAction.cs
2024-08-06 21:58:35 +02:00

34 lines
1.3 KiB
C#

// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UxrFlipbookFinishedAction.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace UltimateXR.Animation.Materials
{
/// <summary>
/// What should be done when a <see cref="UxrAnimatedTextureFlipbook" /> animation finished. This is only supported
/// with <see cref="UxrFlipbookAnimationMode.SingleSequence" />.
/// </summary>
public enum UxrFlipbookFinishedAction
{
/// <summary>
/// Nothing happens when the animation finished.
/// </summary>
DoNothing,
/// <summary>
/// After showing the last frame, the renderer is disabled.
/// </summary>
DisableRenderer,
/// <summary>
/// After showing the last frame, the GameObject the component is attached to is disabled.
/// </summary>
DisableGameObject,
/// <summary>
/// After showing the last frame, the GameObject the component is attached to is destroyed.
/// </summary>
DestroyGameObject
}
}