72 lines
1.7 KiB
C#
72 lines
1.7 KiB
C#
/**
|
|
* Copyright(c) Live2D Inc. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by the Live2D Open Software license
|
|
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
|
|
*/
|
|
|
|
|
|
using System;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace Live2D.Cubism.Framework.MotionFade
|
|
{
|
|
public struct CubismFadePlayingMotion
|
|
{
|
|
/// <summary>
|
|
/// Animation clip start time.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public float StartTime;
|
|
|
|
/// <summary>
|
|
/// Animation clip end time.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public float EndTime;
|
|
|
|
/// <summary>
|
|
/// Cubism fade in start time.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public float FadeInStartTime;
|
|
|
|
/// <summary>
|
|
/// Animation playing speed.
|
|
/// </summary>
|
|
[SerializeField, Range(0.0f, float.MaxValue)]
|
|
public float Speed;
|
|
|
|
/// <summary>
|
|
/// Cubism fade motion data.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public CubismFadeMotionData Motion;
|
|
|
|
/// <summary>
|
|
/// Is animation loop.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public bool IsLooping;
|
|
|
|
/// <summary>
|
|
/// Motion weight.
|
|
/// </summary>
|
|
[NonSerialized]
|
|
public float Weight;
|
|
|
|
/// <summary>
|
|
/// Clip event <see cref="CubismFadeMotionData"/> InstanceId.
|
|
/// </summary>
|
|
[NonSerialized]
|
|
public int? InstanceId;
|
|
|
|
/// <summary>
|
|
/// Is animation end event invoked.
|
|
/// </summary>
|
|
[NonSerialized]
|
|
public bool IsAnimationEndEventInvoked;
|
|
}
|
|
}
|