add live select pannel
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
public class LiveTimelineCamLookAtLocator : MonoBehaviour
|
||||
{
|
||||
private void Awake()
|
||||
{
|
||||
Object.Destroy(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9912b95cb770ef46b50b01c1faaf320
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
public class LiveTimelineCamPosLocator : MonoBehaviour
|
||||
{
|
||||
private void Awake()
|
||||
{
|
||||
Object.Destroy(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1688006cc5f3f8d4ab94f087eeeef05f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharaHeightMotSeqData : ILiveTimelineGroupData
|
||||
{
|
||||
public LiveCharaPosition charaPosition;
|
||||
|
||||
public LiveTimelineKeyCharaHeightMotionSeqDataList keys = new LiveTimelineKeyCharaHeightMotionSeqDataList();
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d876683ce520ed4784ef2ebb87bed90
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharaIKData : ILiveTimelineSetData
|
||||
{
|
||||
[NonSerialized]
|
||||
private static readonly LiveTimelineKeyDataType[] DataTypeArray = new LiveTimelineKeyDataType[DATA_LIST_SIZE]
|
||||
{
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK,
|
||||
LiveTimelineKeyDataType.CharaIK
|
||||
};
|
||||
|
||||
private const int DATA_LIST_SIZE = 15;
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList centerKeys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left1Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right1Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left2Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right2Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left3Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right3Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left4Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right4Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left5Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right5Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left6Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right6Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList left7Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList right7Keys = new LiveTimelineKeyCharaIKDataList();
|
||||
|
||||
private LiveTimelineKeyCharaIKDataList[] _cacheDataList = new LiveTimelineKeyCharaIKDataList[DATA_LIST_SIZE];
|
||||
|
||||
public ILiveTimelineKeyDataList GetKeyList(int index)
|
||||
{
|
||||
return GetKeyListArray()[index];
|
||||
}
|
||||
|
||||
public LiveTimelineKeyCharaIKDataList[] GetIKKeyListArray()
|
||||
{
|
||||
return GetKeyListArray() as LiveTimelineKeyCharaIKDataList[];
|
||||
}
|
||||
|
||||
public ILiveTimelineKeyDataList[] GetKeyListArray()
|
||||
{
|
||||
_cacheDataList[0] = centerKeys;
|
||||
_cacheDataList[1] = left1Keys;
|
||||
_cacheDataList[2] = right1Keys;
|
||||
_cacheDataList[3] = left2Keys;
|
||||
_cacheDataList[4] = right2Keys;
|
||||
_cacheDataList[5] = left3Keys;
|
||||
_cacheDataList[6] = right3Keys;
|
||||
_cacheDataList[7] = left4Keys;
|
||||
_cacheDataList[8] = right4Keys;
|
||||
_cacheDataList[9] = left5Keys;
|
||||
_cacheDataList[10] = right5Keys;
|
||||
_cacheDataList[11] = left6Keys;
|
||||
_cacheDataList[12] = right6Keys;
|
||||
_cacheDataList[13] = left7Keys;
|
||||
_cacheDataList[14] = right7Keys;
|
||||
|
||||
return _cacheDataList;
|
||||
}
|
||||
|
||||
public LiveTimelineKeyDataType[] GetKeyTypeArray()
|
||||
{
|
||||
return DataTypeArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2de6580b1e7a74d459d281e261b6727a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharaMotSeqData : ILiveTimelineGroupData
|
||||
{
|
||||
public LiveTimelineKeyCharaMotionSeqDataList keys = new LiveTimelineKeyCharaMotionSeqDataList();
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2963ca7cb762f7848835992c6c5e8f53
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharaOverrideMotSeqData : ILiveTimelineGroupData
|
||||
{
|
||||
public LiveTimelineKeyCharaOverrideMotionSeqDataList keys = new LiveTimelineKeyCharaOverrideMotionSeqDataList();
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e264187b745b35f4c9eeb8d054756f65
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharaWindData : ILiveTimelineGroupData
|
||||
{
|
||||
public LiveCharaPosition charaPosition;
|
||||
|
||||
public LiveTimelineKeyCharaWindDataList keys = new LiveTimelineKeyCharaWindDataList();
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 737cca95473b72c428c0094ad52cec57
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,185 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
/// <summary>
|
||||
/// TimelineDataƒtƒ@ƒCƒ‹‚Ì�Ý’è
|
||||
/// </summary>
|
||||
public class LiveTimelineData : ScriptableObject
|
||||
{
|
||||
public enum CharacterPositionMode
|
||||
{
|
||||
Immobility,
|
||||
Relative,
|
||||
None
|
||||
}
|
||||
|
||||
public enum ParticleControllMode
|
||||
{
|
||||
Score,
|
||||
Timeline
|
||||
}
|
||||
|
||||
public enum AlterAnimationMode
|
||||
{
|
||||
None,
|
||||
LeftHanded
|
||||
}
|
||||
|
||||
public enum AlterSheetMode
|
||||
{
|
||||
None,
|
||||
LeftHanded
|
||||
}
|
||||
|
||||
public static readonly string DEFAULT_SPOTLIGHT_PARENT_NAME = "Position";
|
||||
|
||||
public const float MAX_FORCAL_SIZE_MIN = 30f;
|
||||
|
||||
public const float MAX_FORCAL_SIZE_MAX = 200f;
|
||||
|
||||
public static string[] sVersionList = new string[1] { "0.9" };
|
||||
|
||||
public string version = sVersionList[0];
|
||||
|
||||
public int timeLength = 140;
|
||||
|
||||
public CharacterPositionMode characterPositionMode;
|
||||
|
||||
public string[] spotLightPrefabNames = new string[0];
|
||||
|
||||
public string spotLightParentName = DEFAULT_SPOTLIGHT_PARENT_NAME;
|
||||
|
||||
public string[] shadowPrefabNames = new string[0];
|
||||
|
||||
public LiveTimelineCharacterSettings characterSettings = new LiveTimelineCharacterSettings();
|
||||
|
||||
public LiveTimelinePropsSettings propsSetteings = new LiveTimelinePropsSettings();
|
||||
|
||||
public LiveTimelineSunshaftsSettings sunshaftsSettings = new LiveTimelineSunshaftsSettings();
|
||||
|
||||
public LiveTimelineHdrBloomSettings hdrBloomSettings = new LiveTimelineHdrBloomSettings();
|
||||
|
||||
public LiveTimelineCharacterOptionSettings characterOptionSettings = new LiveTimelineCharacterOptionSettings();
|
||||
|
||||
public LiveTimelineIndirectLightShuftSettings indirectLightShuftSettings = new LiveTimelineIndirectLightShuftSettings();
|
||||
|
||||
public LiveTimelineA2USettings a2uSettings = new LiveTimelineA2USettings();
|
||||
|
||||
public LiveTimelineMonitorCameraSettings monitorCameraSettings = new LiveTimelineMonitorCameraSettings();
|
||||
|
||||
public LiveTimelineMultiCameraSettings multiCameraSettings = new LiveTimelineMultiCameraSettings();
|
||||
|
||||
public LiveTimelineMobCyalume3DSettings mobCyalume3DSettings = new LiveTimelineMobCyalume3DSettings();
|
||||
|
||||
public LiveTimelineSwitchSheetSetting switchSheetSettings = new LiveTimelineSwitchSheetSetting();
|
||||
|
||||
public LiveTimelineSwitchSheetAltSetting switchSheetAltSettings = new LiveTimelineSwitchSheetAltSetting();
|
||||
|
||||
public LiveTimelineSwitchSheetTargetTimelineSetting switchSheetTargetTimelineSettings = new LiveTimelineSwitchSheetTargetTimelineSetting();
|
||||
|
||||
public LiveTimelineTransparentCameraSettings transparentFXCameraSettings = new LiveTimelineTransparentCameraSettings();
|
||||
|
||||
[SerializeField]
|
||||
private List<LiveTimelineWorkSheet> worksheetList = new List<LiveTimelineWorkSheet>();
|
||||
|
||||
public LiveTimelineMultiCameraMaskSettings multiCameraMaskSettings = new LiveTimelineMultiCameraMaskSettings();
|
||||
|
||||
public ParticleControllMode particleControllMode = ParticleControllMode.Timeline;
|
||||
|
||||
public bool isUseHQParticle;
|
||||
|
||||
public string[] particlePrefabNames = new string[0];
|
||||
|
||||
public string[] mirrorScanLightBodyPrefabNames = new string[0];
|
||||
|
||||
public LiveTimelineLensFlareSetting lensFlareSetting = new LiveTimelineLensFlareSetting();
|
||||
|
||||
[Range(30f, 200f)]
|
||||
public float maxForcalSize = 30f;
|
||||
|
||||
public bool isUseMirrorScanMotionDictionary;
|
||||
|
||||
public bool isUseGameSettingToParticle;
|
||||
|
||||
public LiveTimelineStageObjectsSettings stageObjectsSettings = new LiveTimelineStageObjectsSettings();
|
||||
|
||||
public LiveTimelineGamePlaySettings gamePlaySettings = new LiveTimelineGamePlaySettings();
|
||||
|
||||
[HideInInspector]
|
||||
public LiveTimelineAlterAnimationSettings alterAnimationSettings = new LiveTimelineAlterAnimationSettings();
|
||||
|
||||
public AlterAnimationMode alterAnimationMode;
|
||||
|
||||
public LiveTimelineMonitorSettings monitorSettings = new LiveTimelineMonitorSettings();
|
||||
|
||||
public bool isHighPolygonModel(int charaPos, bool bLightMode)
|
||||
{
|
||||
return (bLightMode ? characterSettings.useHighPolygonModelForLightMode : characterSettings.useHighPolygonModel)[charaPos];
|
||||
}
|
||||
|
||||
public List<LiveTimelineWorkSheet> GetWorkSheetList()
|
||||
{
|
||||
return worksheetList;
|
||||
}
|
||||
|
||||
public LiveTimelineWorkSheet GetWorkSheet(int index)
|
||||
{
|
||||
return worksheetList[index];
|
||||
}
|
||||
|
||||
public void UnloadSheets()
|
||||
{
|
||||
for (int i = 0; i < worksheetList.Count; i++)
|
||||
{
|
||||
if (worksheetList[i] != null)
|
||||
{
|
||||
Resources.UnloadAsset(worksheetList[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnLoad(LiveTimelineControl timelineControl)
|
||||
{
|
||||
List<int> list = new List<int>();
|
||||
for (int i = 0; i < worksheetList.Count; i++)
|
||||
{
|
||||
if (worksheetList[i] == null)
|
||||
{
|
||||
list.Add(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
worksheetList[i].OnLoad(timelineControl);
|
||||
}
|
||||
}
|
||||
list.Reverse();
|
||||
foreach (int item in list)
|
||||
{
|
||||
worksheetList.RemoveAt(item);
|
||||
}
|
||||
}
|
||||
|
||||
public int FindTimelineIndexInGroup(LiveTimelineKey key)
|
||||
{
|
||||
if (key == null)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
for (int i = 0; i < worksheetList.Count; i++)
|
||||
{
|
||||
LiveTimelineWorkSheet liveTimelineWorkSheet = worksheetList[i];
|
||||
if (!(liveTimelineWorkSheet == null))
|
||||
{
|
||||
int num = liveTimelineWorkSheet.FindTimelineIndexInGroup(key);
|
||||
if (num >= 0)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 272071fc00619c44fac56548c00073ea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,31 @@
|
||||
namespace Cutt
|
||||
{
|
||||
public static class LiveTimelineDefine
|
||||
{
|
||||
public enum MouthType
|
||||
{
|
||||
N = 6,
|
||||
N_SmileClose = 7,
|
||||
N_Smile = 8,
|
||||
A = 1,
|
||||
I = 2,
|
||||
U = 3,
|
||||
E = 4,
|
||||
O = 5,
|
||||
Smile = 10,
|
||||
SmileClose = 13,
|
||||
Wink = 11,
|
||||
SadMouth = 12
|
||||
}
|
||||
|
||||
public const string kSheetAssetLabel = "CuttSheet";
|
||||
|
||||
public const int kCameraMaxNum = 3;
|
||||
|
||||
public const int kBezierControlPointMax = 15;
|
||||
|
||||
public const int kBezierOldCalcMethodCPMax = 3;
|
||||
|
||||
public const string kMotionResourcesDir = "3D/Chara/Motion/Legacy/";
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b93203616c9af534e914a5235be681e3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
public class LiveTimelineEditWorkSheet : ScriptableObject
|
||||
{
|
||||
public const string EditAssetDataName = "EditData";
|
||||
|
||||
public string version = LiveTimelineWorkSheet.sVersionList[0];
|
||||
|
||||
public LiveTimelineKeyCuttNumberDataList cuttNumberKeys = new LiveTimelineKeyCuttNumberDataList();
|
||||
|
||||
public List<EditTimelineEditorColor> formationOffsetColor = new List<EditTimelineEditorColor>();
|
||||
|
||||
public List<EditTimelineEditorColor> objectColor = new List<EditTimelineEditorColor>();
|
||||
|
||||
public List<EditTimelineEditorName> motionSeqLineName = new List<EditTimelineEditorName>();
|
||||
|
||||
public List<EditTimelineEditorName> overrideMotionSeqLineName = new List<EditTimelineEditorName>();
|
||||
|
||||
private ILiveTimelineKeyDataList[] _keysArray;
|
||||
|
||||
public ILiveTimelineKeyDataList[] keysArray
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_keysArray == null)
|
||||
{
|
||||
List<ILiveTimelineKeyDataList> list = new List<ILiveTimelineKeyDataList> { cuttNumberKeys };
|
||||
_keysArray = list.ToArray();
|
||||
}
|
||||
return _keysArray;
|
||||
}
|
||||
}
|
||||
|
||||
public void OnLoad(LiveTimelineControl timelineControl)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dbefdbe16fc1bc043b63f9b25f9168cd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
public class LiveTimelineEventPublisher
|
||||
{
|
||||
private class EventWrapper
|
||||
{
|
||||
public LiveTimelineEventID id;
|
||||
|
||||
public event LiveTimelineEventHandler handler;
|
||||
|
||||
public EventWrapper(LiveTimelineEventID id_)
|
||||
{
|
||||
id = id_;
|
||||
}
|
||||
|
||||
public void fire(LiveTimelineKeyEventData.EventData data)
|
||||
{
|
||||
if (this.handler != null)
|
||||
{
|
||||
this.handler(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public interface IParamGenerator
|
||||
{
|
||||
CuttEventParamBase ToObject(string json);
|
||||
|
||||
CuttEventParamBase Create();
|
||||
}
|
||||
|
||||
public class ParamGenerator<TypeParam> : IParamGenerator where TypeParam : CuttEventParamBase, new()
|
||||
{
|
||||
public CuttEventParamBase ToObject(string json)
|
||||
{
|
||||
return JsonMapper.ToObject<TypeParam>(json);
|
||||
}
|
||||
|
||||
public CuttEventParamBase Create()
|
||||
{
|
||||
return new TypeParam();
|
||||
}
|
||||
}
|
||||
|
||||
public static Dictionary<LiveTimelineEventID, IParamGenerator> paramGeneratorDict;
|
||||
|
||||
private Dictionary<LiveTimelineEventID, EventWrapper> eventDict = new Dictionary<LiveTimelineEventID, EventWrapper>();
|
||||
|
||||
static LiveTimelineEventPublisher()
|
||||
{
|
||||
paramGeneratorDict = new Dictionary<LiveTimelineEventID, IParamGenerator>();
|
||||
paramGeneratorDict.Add(LiveTimelineEventID.SwitchCamera, new ParamGenerator<CuttEventParam_SwitchCamera>());
|
||||
paramGeneratorDict.Add(LiveTimelineEventID.CameraHandShake, new ParamGenerator<CuttEventParam_CameraHandShake>());
|
||||
paramGeneratorDict.Add(LiveTimelineEventID.ChangeEyeTrackTarget, new ParamGenerator<CuttEventParam_ChangeEyeTrackTarget>());
|
||||
paramGeneratorDict.Add(LiveTimelineEventID.SwitchSheetFromCharacterCondition, new ParamGenerator<CuttEventParam_SwitchSheetFromCharacterCondition>());
|
||||
paramGeneratorDict.Add(LiveTimelineEventID.SwitchSheetAltFromCharacterCondition, new ParamGenerator<CuttEventParam_SwitchSheetAltFromCharacterCondition>());
|
||||
paramGeneratorDict.Add(LiveTimelineEventID.SwitchSheetFromCharacterConditionVm, new ParamGenerator<CuttEventParam_SwitchSheetFromCharacterConditionVm>());
|
||||
}
|
||||
|
||||
public void BeginPublish()
|
||||
{
|
||||
foreach (object value in Enum.GetValues(typeof(LiveTimelineEventID)))
|
||||
{
|
||||
eventDict[(LiveTimelineEventID)value] = new EventWrapper((LiveTimelineEventID)value);
|
||||
}
|
||||
}
|
||||
|
||||
public void EndPublish()
|
||||
{
|
||||
eventDict.Clear();
|
||||
}
|
||||
|
||||
public void Subscribe(LiveTimelineEventID id, LiveTimelineEventHandler handler)
|
||||
{
|
||||
EventWrapper @event = GetEvent(id);
|
||||
if (@event != null)
|
||||
{
|
||||
@event.handler += handler;
|
||||
}
|
||||
}
|
||||
|
||||
public void Unsubscribe(LiveTimelineEventID id, LiveTimelineEventHandler handler)
|
||||
{
|
||||
EventWrapper @event = GetEvent(id);
|
||||
if (@event != null)
|
||||
{
|
||||
@event.handler -= handler;
|
||||
}
|
||||
}
|
||||
|
||||
public void FireEvent(LiveTimelineKeyEventData eventData)
|
||||
{
|
||||
foreach (LiveTimelineKeyEventData.EventData @event in eventData.eventList)
|
||||
{
|
||||
GetEvent(@event.eventId).fire(@event);
|
||||
}
|
||||
}
|
||||
|
||||
private EventWrapper GetEvent(LiveTimelineEventID id)
|
||||
{
|
||||
if (eventDict.TryGetValue(id, out var value))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fd138b03616c4cd448cbdfad1d7ae6cb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineFacialData : ILiveTimelineSetData
|
||||
{
|
||||
public LiveTimelineKeyFacialFaceDataList faceKeys = new LiveTimelineKeyFacialFaceDataList();
|
||||
|
||||
public LiveTimelineKeyFacialFaceMouthList mouthKeys = new LiveTimelineKeyFacialFaceMouthList();
|
||||
|
||||
public LiveTimelineKeyFacialEyeDataList eyeKeys = new LiveTimelineKeyFacialEyeDataList();
|
||||
|
||||
public LiveTimelineKeyFacialEyeTrackDataList eyeTrackKeys = new LiveTimelineKeyFacialEyeTrackDataList();
|
||||
|
||||
public ILiveTimelineKeyDataList GetKeyList(int index)
|
||||
{
|
||||
return GetKeyListArray()[index];
|
||||
}
|
||||
|
||||
public ILiveTimelineKeyDataList[] GetKeyListArray()
|
||||
{
|
||||
return new ILiveTimelineKeyDataList[4]
|
||||
{
|
||||
faceKeys,
|
||||
mouthKeys,
|
||||
eyeKeys,
|
||||
eyeTrackKeys
|
||||
};
|
||||
}
|
||||
|
||||
public LiveTimelineKeyDataType[] GetKeyTypeArray()
|
||||
{
|
||||
return new LiveTimelineKeyDataType[4]
|
||||
{
|
||||
LiveTimelineKeyDataType.FacialFace,
|
||||
LiveTimelineKeyDataType.FacialMouth,
|
||||
LiveTimelineKeyDataType.FacialEye,
|
||||
LiveTimelineKeyDataType.FacialEyeTrack
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f7399383aa124449bc6d4a28a17d4fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineFormationOffsetData : ILiveTimelineSetData
|
||||
{
|
||||
private const int DATA_LIST_SIZE = 5;
|
||||
|
||||
public LiveTimelineKeyFormationOffsetDataList centerKeys = new LiveTimelineKeyFormationOffsetDataList();
|
||||
|
||||
public LiveTimelineKeyFormationOffsetDataList left1Keys = new LiveTimelineKeyFormationOffsetDataList();
|
||||
|
||||
public LiveTimelineKeyFormationOffsetDataList right1Keys = new LiveTimelineKeyFormationOffsetDataList();
|
||||
|
||||
public LiveTimelineKeyFormationOffsetDataList left2Keys = new LiveTimelineKeyFormationOffsetDataList();
|
||||
|
||||
public LiveTimelineKeyFormationOffsetDataList right2Keys = new LiveTimelineKeyFormationOffsetDataList();
|
||||
|
||||
private ILiveTimelineKeyDataList[] _cacheDataList = new ILiveTimelineKeyDataList[DATA_LIST_SIZE];
|
||||
|
||||
public ILiveTimelineKeyDataList GetKeyList(int index)
|
||||
{
|
||||
return GetKeyListArray()[index];
|
||||
}
|
||||
|
||||
public ILiveTimelineKeyDataList[] GetKeyListArray()
|
||||
{
|
||||
_cacheDataList[0] = centerKeys;
|
||||
_cacheDataList[1] = left1Keys;
|
||||
_cacheDataList[2] = right1Keys;
|
||||
_cacheDataList[3] = left2Keys;
|
||||
_cacheDataList[4] = right2Keys;
|
||||
return _cacheDataList;
|
||||
}
|
||||
|
||||
public LiveTimelineKeyDataType[] GetKeyTypeArray()
|
||||
{
|
||||
return new LiveTimelineKeyDataType[5]
|
||||
{
|
||||
LiveTimelineKeyDataType.FormationOffset,
|
||||
LiveTimelineKeyDataType.FormationOffset,
|
||||
LiveTimelineKeyDataType.FormationOffset,
|
||||
LiveTimelineKeyDataType.FormationOffset,
|
||||
LiveTimelineKeyDataType.FormationOffset
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b68d1b9c7eb36294bbc6ee5d13f85b0f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+577
@@ -0,0 +1,577 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
/// <summary>
|
||||
/// キャラクターモーションの設定
|
||||
/// </summary>
|
||||
public class LiveTimelineMotionSequence
|
||||
{
|
||||
/// <summary>
|
||||
/// キャラクタのモーションのパラメータ
|
||||
/// </summary>
|
||||
public struct Context
|
||||
{
|
||||
/// <summary>
|
||||
/// モーション対象のターゲット
|
||||
/// </summary>
|
||||
public ILiveTimelineMSQTarget target;
|
||||
|
||||
/// <summary>
|
||||
/// モーションのキーフレーム
|
||||
/// </summary>
|
||||
public LiveTimelineKeyCharaMotionSeqDataList motionKeys;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public LiveTimelineKeyCharaOverrideMotionSeqDataList overwriteMotionKeys;
|
||||
|
||||
public LiveTimelineControl timelineControl;
|
||||
|
||||
/// <summary>
|
||||
/// オブジェクトの高さを変更するモーションのキー
|
||||
/// </summary>
|
||||
public LiveTimelineKeyCharaHeightMotionSeqDataList heightMotionKeys;
|
||||
}
|
||||
|
||||
private const int HeightBlendNum = 3;
|
||||
|
||||
/// <summary>
|
||||
/// キーブレンドの最小値
|
||||
/// </summary>
|
||||
private const float MinBlendRate = 0.0001f;
|
||||
|
||||
/// <summary>
|
||||
/// モーション対象
|
||||
/// </summary>
|
||||
private ILiveTimelineMSQTarget _target;
|
||||
|
||||
/// <summary>
|
||||
/// 対象のオブジェクトが行うアニメーション
|
||||
/// </summary>
|
||||
private Animation _animation;
|
||||
|
||||
/// <summary>
|
||||
/// モーションの動作を指定するキー
|
||||
/// </summary>
|
||||
private LiveTimelineKeyCharaMotionSeqDataList _keys;
|
||||
|
||||
/// <summary>
|
||||
/// 前キーを上書きしてモーションを変更するキー
|
||||
/// </summary>
|
||||
private LiveTimelineKeyCharaOverrideMotionSeqDataList _overwriteKeys;
|
||||
|
||||
/// <summary>
|
||||
/// 指定モーション(A-B間)のB値
|
||||
/// </summary>
|
||||
private int _indexOfPlayingKeyB = -1;
|
||||
|
||||
/// <summary>
|
||||
/// タイムラインコントローラ
|
||||
/// </summary>
|
||||
private LiveTimelineControl _timelineControl;
|
||||
|
||||
/// <summary>
|
||||
/// 指定モーション(A-B間)のA値
|
||||
/// </summary>
|
||||
private int _indexOfPlayingKeyA = -1;
|
||||
|
||||
/// <summary>
|
||||
/// 高さのモーションが存在するか
|
||||
/// </summary>
|
||||
private bool _isHeightMotionTimeline;
|
||||
|
||||
/// <summary>
|
||||
/// 高さモーションのキー
|
||||
/// </summary>
|
||||
private LiveTimelineKeyCharaHeightMotionData _heightMotionKey;
|
||||
|
||||
/// <summary>
|
||||
/// 高さモーションのブレンド値
|
||||
/// </summary>
|
||||
private float[] _heightBlendRate = new float[3];
|
||||
|
||||
/// <summary>
|
||||
/// オーバーライトモーションが存在するか
|
||||
/// </summary>
|
||||
private bool _isOverwriteMotionTimeline;
|
||||
|
||||
private float _currentTime;
|
||||
|
||||
private Dictionary<string, bool> _beforeMotionStateName = new Dictionary<string, bool>();
|
||||
|
||||
public float currentTime => _currentTime;
|
||||
|
||||
private void StopHeightMotionKey(LiveTimelineKeyCharaHeightMotionData key)
|
||||
{
|
||||
if (key.clip != null)
|
||||
{
|
||||
AnimationState animationState = _animation[key.clip.name];
|
||||
if (animationState != null)
|
||||
{
|
||||
animationState.enabled = false;
|
||||
}
|
||||
}
|
||||
if (key.partsMotion == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
LiveTimelineKeyCharaHeightMotionData.PartsMotion[] partsMotion = key.partsMotion;
|
||||
for (int i = 0; i < partsMotion.Length; i++)
|
||||
{
|
||||
LiveTimelineKeyCharaHeightMotionData.PartsMotion partsMotion2 = partsMotion[i];
|
||||
AnimationState animationState2 = _animation[partsMotion2.baseMotion.name];
|
||||
if (animationState2 != null)
|
||||
{
|
||||
animationState2.enabled = false;
|
||||
}
|
||||
animationState2 = _animation[partsMotion2.blendMotion.name];
|
||||
if (animationState2 != null)
|
||||
{
|
||||
animationState2.enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetHeightMotionKey(LiveTimelineKeyCharaHeightMotionData key)
|
||||
{
|
||||
if (_heightMotionKey != key && _animation != null)
|
||||
{
|
||||
if (key != null)
|
||||
{
|
||||
StopHeightMotionKey(key);
|
||||
}
|
||||
if (_heightMotionKey != null)
|
||||
{
|
||||
StopHeightMotionKey(_heightMotionKey);
|
||||
}
|
||||
}
|
||||
_heightMotionKey = key;
|
||||
}
|
||||
|
||||
public void SetHeightMotionBlend(int index, float rate)
|
||||
{
|
||||
_heightBlendRate[index] = rate;
|
||||
}
|
||||
|
||||
public void Initialize(ref Context context)
|
||||
{
|
||||
if (context.target == null || context.target.liveMSQAnimation == null || context.motionKeys == null || context.timelineControl == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_keys = context.motionKeys;
|
||||
_overwriteKeys = context.overwriteMotionKeys;
|
||||
_target = context.target;
|
||||
_animation = context.target.liveMSQAnimation;
|
||||
_timelineControl = context.timelineControl;
|
||||
_indexOfPlayingKeyB = -1;
|
||||
_indexOfPlayingKeyA = -1;
|
||||
_isHeightMotionTimeline = false;
|
||||
_isOverwriteMotionTimeline = false;
|
||||
_target.liveMSQControlled = true;
|
||||
_animation.Stop();
|
||||
for (int i = 0; i < context.motionKeys.Count; i++)
|
||||
{
|
||||
LiveTimelineKeyCharaMotionData liveTimelineKeyCharaMotionData = _keys.At(i) as LiveTimelineKeyCharaMotionData;
|
||||
if (!string.IsNullOrEmpty(liveTimelineKeyCharaMotionData.motionName))
|
||||
{
|
||||
SetupAnimationClip(liveTimelineKeyCharaMotionData);
|
||||
}
|
||||
}
|
||||
if (context.overwriteMotionKeys != null)
|
||||
{
|
||||
for (int j = 0; j < context.overwriteMotionKeys.Count; j++)
|
||||
{
|
||||
LiveTimelineKeyCharaMotionData liveTimelineKeyCharaMotionData2 = _overwriteKeys.At(j) as LiveTimelineKeyCharaMotionData;
|
||||
if (!string.IsNullOrEmpty(liveTimelineKeyCharaMotionData2.motionName))
|
||||
{
|
||||
SetupAnimationClip(liveTimelineKeyCharaMotionData2);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (context.heightMotionKeys != null)
|
||||
{
|
||||
LiveTimelineKeyCharaHeightMotionSeqDataList heightMotionKeys = context.heightMotionKeys;
|
||||
for (int k = 0; k < heightMotionKeys.Count; k++)
|
||||
{
|
||||
LiveTimelineKeyCharaHeightMotionData key = heightMotionKeys.At(k) as LiveTimelineKeyCharaHeightMotionData;
|
||||
SetupAnimationClip(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ChangeTarget(ILiveTimelineMSQTarget target)
|
||||
{
|
||||
if (target != null)
|
||||
{
|
||||
_target = target;
|
||||
_animation = target.liveMSQAnimation;
|
||||
_indexOfPlayingKeyB = -1;
|
||||
_indexOfPlayingKeyA = -1;
|
||||
_isHeightMotionTimeline = false;
|
||||
_isOverwriteMotionTimeline = false;
|
||||
_target.liveMSQControlled = true;
|
||||
_animation.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
private bool SetupAnimationClip(LiveTimelineKeyCharaHeightMotionData key)
|
||||
{
|
||||
if (key.partsMotion != null)
|
||||
{
|
||||
LiveTimelineKeyCharaHeightMotionData.PartsMotion[] partsMotion = key.partsMotion;
|
||||
for (int i = 0; i < partsMotion.Length; i++)
|
||||
{
|
||||
LiveTimelineKeyCharaHeightMotionData.PartsMotion partsMotion2 = partsMotion[i];
|
||||
if (!(partsMotion2.baseMotion == null) && !(partsMotion2.blendMotion == null))
|
||||
{
|
||||
_animation.AddClip(partsMotion2.baseMotion, partsMotion2.baseMotion.name);
|
||||
_animation.AddClip(partsMotion2.blendMotion, partsMotion2.blendMotion.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(key.motionName))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
AnimationClip animationClip = _timelineControl.LoadAnimationClip(key);
|
||||
if (animationClip == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
_animation.AddClip(animationClip, animationClip.name);
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool SetupAnimationClip(LiveTimelineKeyCharaMotionData key)
|
||||
{
|
||||
AnimationClip animationClip = _timelineControl.LoadAnimationClip(key);
|
||||
if (animationClip == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
_animation.AddClip(animationClip, animationClip.name);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void SetOverwriteKeys(LiveTimelineKeyCharaOverrideMotionSeqDataList overwriteKeys)
|
||||
{
|
||||
_overwriteKeys = overwriteKeys;
|
||||
}
|
||||
|
||||
private void FindPlayingMotion<T>(out LiveTimelineKeyCharaMotionData a, out LiveTimelineKeyCharaMotionData b, out int indexA, out int indexB, float t, float spf, LiveTimelineKeyDataListTemplate<T> keys, LiveTimelineKeyDataType keyType) where T : LiveTimelineKey
|
||||
{
|
||||
a = (b = null);
|
||||
indexA = (indexB = -1);
|
||||
int i = 0;
|
||||
for (int count = keys.Count; i < count; i++)
|
||||
{
|
||||
LiveTimelineKeyCharaMotionData liveTimelineKeyCharaMotionData = keys.thisList[i] as LiveTimelineKeyCharaMotionData;
|
||||
float num = (float)liveTimelineKeyCharaMotionData.frame * spf;
|
||||
if (t >= num && t <= num + liveTimelineKeyCharaMotionData.playLength)
|
||||
{
|
||||
if (a != null)
|
||||
{
|
||||
if (keyType == LiveTimelineKeyDataType.CharaMotionOverwrite || keyType == LiveTimelineKeyDataType.CharaHeightMotion)
|
||||
{
|
||||
a = liveTimelineKeyCharaMotionData;
|
||||
indexA = i;
|
||||
}
|
||||
else if ((float)a.frame * spf + a.playLength >= num)
|
||||
{
|
||||
b = liveTimelineKeyCharaMotionData;
|
||||
indexB = i;
|
||||
}
|
||||
break;
|
||||
}
|
||||
a = liveTimelineKeyCharaMotionData;
|
||||
indexA = i;
|
||||
}
|
||||
else if (num > t)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private LiveTimelineKeyDataType FindPlayingMot(out LiveTimelineKeyCharaMotionData a, out LiveTimelineKeyCharaMotionData b, out LiveTimelineKeyCharaMotionData lastKey, out int indexA, out int indexB, float t, float spf)
|
||||
{
|
||||
if (_overwriteKeys != null)
|
||||
{
|
||||
FindPlayingMotion(out a, out b, out indexA, out indexB, t, spf, _overwriteKeys, LiveTimelineKeyDataType.CharaMotionOverwrite);
|
||||
if (indexA >= 0)
|
||||
{
|
||||
lastKey = null;
|
||||
return LiveTimelineKeyDataType.CharaMotionOverwrite;
|
||||
}
|
||||
}
|
||||
FindPlayingMotion(out a, out b, out indexA, out indexB, t, spf, _keys, LiveTimelineKeyDataType.CharaMotionSequecne);
|
||||
if (_keys.Count > 0)
|
||||
{
|
||||
lastKey = _keys.At(_keys.Count - 1) as LiveTimelineKeyCharaMotionData;
|
||||
}
|
||||
else
|
||||
{
|
||||
lastKey = null;
|
||||
}
|
||||
return LiveTimelineKeyDataType.CharaMotionSequecne;
|
||||
}
|
||||
|
||||
private void OnAnimationBlend(AnimationState motionState, string motionName, float blendRate, WrapMode wrapMode, float setTime)
|
||||
{
|
||||
motionState.speed = 1f;
|
||||
motionState.enabled = true;
|
||||
if (blendRate >= 0.0001f)
|
||||
{
|
||||
_animation.Blend(motionName, blendRate, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
motionState.enabled = false;
|
||||
}
|
||||
motionState.wrapMode = wrapMode;
|
||||
motionState.time = setTime;
|
||||
motionState.speed = 0f;
|
||||
}
|
||||
|
||||
private void OnMotionBlend(AnimationClip clip, float blendRate, WrapMode wrapMode, float setTime)
|
||||
{
|
||||
AnimationState animationState = GetAnimationState(clip);
|
||||
if (!(animationState == null))
|
||||
{
|
||||
OnAnimationBlend(animationState, clip.name, blendRate, wrapMode, setTime);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnMotionBlend(LiveTimelineKeyCharaMotionData clip, float blendRate, WrapMode wrapMode, float setTime)
|
||||
{
|
||||
AnimationState animationState = GetAnimationState(clip);
|
||||
if (!(animationState == null))
|
||||
{
|
||||
OnAnimationBlend(animationState, clip.motionName, blendRate, wrapMode, setTime);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnMotionBUpdate(LiveTimelineKeyCharaMotionData playingKeyB, bool isHeightMotionTimeline, float blendRate, float currentTime, float spf, ref Dictionary<string, bool> controlClips)
|
||||
{
|
||||
float num = (float)playingKeyB.frame * spf;
|
||||
float num2 = (currentTime - num - playingKeyB.motionHeadTime) * playingKeyB.playSpeed;
|
||||
WrapMode wrapMode = (playingKeyB.loop ? WrapMode.Loop : WrapMode.ClampForever);
|
||||
if (!playingKeyB.loop && num2 < 0f)
|
||||
{
|
||||
wrapMode = WrapMode.Loop;
|
||||
}
|
||||
OnMotionBlend(playingKeyB, blendRate, wrapMode, num2);
|
||||
if (!isHeightMotionTimeline)
|
||||
{
|
||||
return;
|
||||
}
|
||||
LiveTimelineKeyCharaHeightMotionData heightMotionKey = _heightMotionKey;
|
||||
if (heightMotionKey.partsMotion != null)
|
||||
{
|
||||
int num3 = 1;
|
||||
LiveTimelineKeyCharaHeightMotionData.PartsMotion[] partsMotion = heightMotionKey.partsMotion;
|
||||
for (int i = 0; i < partsMotion.Length; i++)
|
||||
{
|
||||
LiveTimelineKeyCharaHeightMotionData.PartsMotion partsMotion2 = partsMotion[i];
|
||||
blendRate = _heightBlendRate[num3];
|
||||
OnMotionBlend(partsMotion2.baseMotion, 1f - blendRate, wrapMode, num2);
|
||||
OnMotionBlend(partsMotion2.blendMotion, blendRate, wrapMode, num2);
|
||||
controlClips[partsMotion2.baseMotion.name] = true;
|
||||
controlClips[partsMotion2.blendMotion.name] = true;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DisablePrevMotion(LiveTimelineKeyCharaMotionData motionA, LiveTimelineKeyCharaMotionData prevMotionA, LiveTimelineKeyCharaMotionData motionB, LiveTimelineKeyCharaMotionData prevMotionB, ref bool isChangeMotion)
|
||||
{
|
||||
if (motionA != prevMotionA && prevMotionA != null && motionA != null)
|
||||
{
|
||||
if (motionA.motionNameHash != prevMotionA.motionNameHash)
|
||||
{
|
||||
AnimationState animationState = _animation[prevMotionA.motionName];
|
||||
if (animationState != null)
|
||||
{
|
||||
animationState.enabled = false;
|
||||
}
|
||||
}
|
||||
isChangeMotion = true;
|
||||
}
|
||||
if (prevMotionB != motionB && prevMotionB != null && prevMotionB != motionA)
|
||||
{
|
||||
AnimationState animationState2 = _animation[prevMotionB.motionName];
|
||||
if (animationState2 != null)
|
||||
{
|
||||
animationState2.enabled = false;
|
||||
}
|
||||
isChangeMotion = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void AlterUpdate(float currentTime, float targetFps)
|
||||
{
|
||||
if (_keys == null || _keys.HasAttribute(LiveTimelineKeyDataListAttr.Disable))
|
||||
{
|
||||
return;
|
||||
}
|
||||
_currentTime = currentTime;
|
||||
float num = 1f / targetFps;
|
||||
bool flag = false;
|
||||
LiveTimelineKeyCharaMotionData liveTimelineKeyCharaMotionData = null;
|
||||
bool flag2 = false;
|
||||
if (_heightMotionKey != null)
|
||||
{
|
||||
liveTimelineKeyCharaMotionData = _heightMotionKey;
|
||||
flag2 = true;
|
||||
}
|
||||
if (FindPlayingMot(out var a, out var b, out var _, out var indexA, out var indexB, currentTime, num) == LiveTimelineKeyDataType.CharaMotionOverwrite)
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
LiveTimelineKeyCharaMotionData prevMotionA;
|
||||
LiveTimelineKeyCharaMotionData prevMotionB;
|
||||
if (_isOverwriteMotionTimeline)
|
||||
{
|
||||
prevMotionB = ((_indexOfPlayingKeyB < 0) ? null : (_overwriteKeys.At(_indexOfPlayingKeyB) as LiveTimelineKeyCharaMotionData));
|
||||
prevMotionA = ((_indexOfPlayingKeyA < 0) ? null : (_overwriteKeys.At(_indexOfPlayingKeyA) as LiveTimelineKeyCharaMotionData));
|
||||
}
|
||||
else
|
||||
{
|
||||
prevMotionB = ((_indexOfPlayingKeyB < 0) ? null : (_keys.At(_indexOfPlayingKeyB) as LiveTimelineKeyCharaMotionData));
|
||||
prevMotionA = ((_indexOfPlayingKeyA < 0) ? null : (_keys.At(_indexOfPlayingKeyA) as LiveTimelineKeyCharaMotionData));
|
||||
}
|
||||
bool isChangeMotion = false;
|
||||
if (_isOverwriteMotionTimeline != flag || _isHeightMotionTimeline != flag2)
|
||||
{
|
||||
isChangeMotion = true;
|
||||
_isOverwriteMotionTimeline = flag;
|
||||
_isHeightMotionTimeline = flag2;
|
||||
}
|
||||
if (flag2)
|
||||
{
|
||||
b = liveTimelineKeyCharaMotionData;
|
||||
indexB = -1;
|
||||
}
|
||||
DisablePrevMotion(a, prevMotionA, b, prevMotionB, ref isChangeMotion);
|
||||
if (isChangeMotion)
|
||||
{
|
||||
_target.OnMotionChange();
|
||||
}
|
||||
prevMotionA = a;
|
||||
prevMotionB = b;
|
||||
_indexOfPlayingKeyB = indexB;
|
||||
_indexOfPlayingKeyA = indexA;
|
||||
if (prevMotionA == null)
|
||||
{
|
||||
_target.liveMSQControlled = false;
|
||||
return;
|
||||
}
|
||||
Dictionary<string, bool> controlClips = new Dictionary<string, bool>();
|
||||
_target.liveMSQControlled = true;
|
||||
float num2 = 1f;
|
||||
float num3 = (float)prevMotionA.frame * num;
|
||||
AnimationState animationState = GetAnimationState(prevMotionA);
|
||||
_target.liveMSQCurrentAnimState = animationState;
|
||||
_target.liveMSQCurrentAnimStartTime = num3;
|
||||
if (animationState == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (prevMotionB != null)
|
||||
{
|
||||
if (!flag2)
|
||||
{
|
||||
float num4 = (float)prevMotionB.frame * num;
|
||||
float num5 = num3 + prevMotionA.playLength - num4;
|
||||
if (!(num5 < 0f))
|
||||
{
|
||||
num2 = 1f - Mathf.Clamp01((currentTime - num4) / num5);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
num2 = 1f - _heightBlendRate[0];
|
||||
}
|
||||
}
|
||||
controlClips[animationState.name] = true;
|
||||
animationState.enabled = true;
|
||||
animationState.speed = 1f;
|
||||
if (num2 >= 0.0001f)
|
||||
{
|
||||
_animation.Blend(prevMotionA.motionName, num2, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
animationState.enabled = false;
|
||||
}
|
||||
animationState.wrapMode = (prevMotionA.loop ? WrapMode.Loop : WrapMode.ClampForever);
|
||||
float num6 = currentTime - num3 - prevMotionA.motionHeadTime;
|
||||
animationState.time = num6 * prevMotionA.playSpeed;
|
||||
if (!prevMotionA.loop && num6 < 0f)
|
||||
{
|
||||
animationState.wrapMode = WrapMode.Loop;
|
||||
}
|
||||
animationState.speed = 0f;
|
||||
if (prevMotionB != null)
|
||||
{
|
||||
float blendRate = 1f - num2;
|
||||
OnMotionBUpdate(prevMotionB, flag2, blendRate, currentTime, num, ref controlClips);
|
||||
}
|
||||
string[] subtractClipNames = GetSubtractClipNames(_beforeMotionStateName, controlClips);
|
||||
foreach (string motionName in subtractClipNames)
|
||||
{
|
||||
AnimationState animationState2 = GetAnimationState(motionName);
|
||||
if (animationState2 != null)
|
||||
{
|
||||
animationState2.enabled = false;
|
||||
}
|
||||
}
|
||||
_beforeMotionStateName = controlClips;
|
||||
}
|
||||
|
||||
private string[] GetSubtractClipNames(Dictionary<string, bool> before, Dictionary<string, bool> now)
|
||||
{
|
||||
List<string> list = new List<string>();
|
||||
foreach (string key in before.Keys)
|
||||
{
|
||||
if (!now.ContainsKey(key))
|
||||
{
|
||||
list.Add(key);
|
||||
}
|
||||
}
|
||||
return list.ToArray();
|
||||
}
|
||||
|
||||
private AnimationState GetAnimationState(LiveTimelineKeyCharaMotionData key)
|
||||
{
|
||||
return GetAnimationState(key.motionName);
|
||||
}
|
||||
|
||||
private AnimationState GetAnimationState(AnimationClip clip)
|
||||
{
|
||||
if (clip == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return GetAnimationState(clip.name);
|
||||
}
|
||||
|
||||
private AnimationState GetAnimationState(string motionName)
|
||||
{
|
||||
if (_animation == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
AnimationState animationState = _animation[motionName];
|
||||
if (animationState != null)
|
||||
{
|
||||
return animationState;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7bed68f96d817e64e86ab3d144f73775
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineOther4FacialData : ILiveTimelineSetData
|
||||
{
|
||||
public LiveTimelineKeyFacialFaceDataList faceKeys = new LiveTimelineKeyFacialFaceDataList();
|
||||
|
||||
public LiveTimelineKeyFacialFaceMouthList mouthKeys = new LiveTimelineKeyFacialFaceMouthList();
|
||||
|
||||
public LiveTimelineKeyFacialEyeDataList eyeKeys = new LiveTimelineKeyFacialEyeDataList();
|
||||
|
||||
public LiveTimelineKeyFacialEyeTrackDataList eyeTrackKeys = new LiveTimelineKeyFacialEyeTrackDataList();
|
||||
|
||||
public ILiveTimelineKeyDataList GetKeyList(int index)
|
||||
{
|
||||
return GetKeyListArray()[index];
|
||||
}
|
||||
|
||||
public ILiveTimelineKeyDataList[] GetKeyListArray()
|
||||
{
|
||||
return new ILiveTimelineKeyDataList[4]
|
||||
{
|
||||
faceKeys,
|
||||
mouthKeys,
|
||||
eyeKeys,
|
||||
eyeTrackKeys
|
||||
};
|
||||
}
|
||||
|
||||
public LiveTimelineKeyDataType[] GetKeyTypeArray()
|
||||
{
|
||||
return new LiveTimelineKeyDataType[4]
|
||||
{
|
||||
LiveTimelineKeyDataType.FacialFace,
|
||||
LiveTimelineKeyDataType.FacialMouth,
|
||||
LiveTimelineKeyDataType.FacialEye,
|
||||
LiveTimelineKeyDataType.FacialEyeTrack
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: baa5e5f6a704ed047a0071e1e489c22d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
public class LiveTimelineWorkSheet : ScriptableObject
|
||||
{
|
||||
public static string[] sVersionList = new string[1] { "0.9" };
|
||||
|
||||
public string version = sVersionList[0];
|
||||
|
||||
public int targetCameraIndex;
|
||||
|
||||
public bool enableAtRuntime = true;
|
||||
|
||||
public bool enableAtEdit = true;
|
||||
|
||||
public LiveTimelineKeyCameraPositionDataList cameraPosKeys = new LiveTimelineKeyCameraPositionDataList();
|
||||
|
||||
public LiveTimelineKeyCameraLookAtDataList cameraLookAtKeys = new LiveTimelineKeyCameraLookAtDataList();
|
||||
|
||||
public LiveTimelineKeyCameraFovDataList cameraFovKeys = new LiveTimelineKeyCameraFovDataList();
|
||||
|
||||
public LiveTimelineKeyCameraRollDataList cameraRollKeys = new LiveTimelineKeyCameraRollDataList();
|
||||
|
||||
public LiveTimelineKeyEventDataList eventKeys = new LiveTimelineKeyEventDataList();
|
||||
|
||||
public List<LiveTimelineCharaMotSeqData> charaMotSeqList = new List<LiveTimelineCharaMotSeqData>();
|
||||
|
||||
public List<LiveTimelineCharaOverrideMotSeqData> charaMotOverwriteList = new List<LiveTimelineCharaOverrideMotSeqData>();
|
||||
|
||||
public List<LiveTimelineBgColor1Data> bgColor1List = new List<LiveTimelineBgColor1Data>();
|
||||
|
||||
public List<LiveTimelineBgColor2Data> bgColor2List = new List<LiveTimelineBgColor2Data>();
|
||||
|
||||
public List<LiveTimelineBgColor3Data> bgColor3List = new List<LiveTimelineBgColor3Data>();
|
||||
|
||||
public List<LiveTimelineMonitorControlData> monitorControlList = new List<LiveTimelineMonitorControlData>();
|
||||
|
||||
public List<LiveTimelineAnimationData> animationList = new List<LiveTimelineAnimationData>();
|
||||
|
||||
public List<LiveTimelineTextureAnimationData> textureAnimationList = new List<LiveTimelineTextureAnimationData>();
|
||||
|
||||
public List<LiveTimelineTransformData> transformList = new List<LiveTimelineTransformData>();
|
||||
|
||||
public List<LiveTimelineRendererData> rendererList = new List<LiveTimelineRendererData>();
|
||||
|
||||
public List<LiveTimelineObjectData> objectList = new List<LiveTimelineObjectData>();
|
||||
|
||||
public List<LiveTimelineGazingObjectData> gazingObjectList = new List<LiveTimelineGazingObjectData>();
|
||||
|
||||
public List<LiveTimelinePropsData> propsList = new List<LiveTimelinePropsData>();
|
||||
|
||||
public List<LiveTimelinePropsAttachData> propsAttachList = new List<LiveTimelinePropsAttachData>();
|
||||
|
||||
public LiveTimelineKeyCameraSwitcherDataList cameraSwitcherKeys = new LiveTimelineKeyCameraSwitcherDataList();
|
||||
|
||||
public LiveTimelineKeyRipSyncDataList ripSyncKeys = new LiveTimelineKeyRipSyncDataList();
|
||||
|
||||
public LiveTimelineKeyPostEffectDataList postEffectKeys = new LiveTimelineKeyPostEffectDataList();
|
||||
|
||||
public LiveTimelineKeyPostFilmDataList postFilmKeys = new LiveTimelineKeyPostFilmDataList();
|
||||
|
||||
public LiveTimelineKeyPostFilmDataList postFilm2Keys = new LiveTimelineKeyPostFilmDataList();
|
||||
|
||||
public LiveTimelineKeyScreenFadeDataList screenFadeKeys = new LiveTimelineKeyScreenFadeDataList();
|
||||
|
||||
public LiveTimelineKeyCrossFadeCameraPositionDataList crossFadeCameraPosKeys = new LiveTimelineKeyCrossFadeCameraPositionDataList();
|
||||
|
||||
public LiveTimelineKeyCrossFadeCameraLookAtDataList crossFadeCameraLookAtKeys = new LiveTimelineKeyCrossFadeCameraLookAtDataList();
|
||||
|
||||
public LiveTimelineKeyCrossFadeCameraFovDataList crossFadeCameraFovKeys = new LiveTimelineKeyCrossFadeCameraFovDataList();
|
||||
|
||||
public LiveTimelineKeyCrossFadeCameraRollDataList crossFadeCameraRollKeys = new LiveTimelineKeyCrossFadeCameraRollDataList();
|
||||
|
||||
public LiveTimelineKeyCrossFadeCameraAlphaDataList crossFadeCameraAlphaKeys = new LiveTimelineKeyCrossFadeCameraAlphaDataList();
|
||||
|
||||
public LiveTimelineKeyCameraLayerDataList cameraLayerKeys = new LiveTimelineKeyCameraLayerDataList();
|
||||
|
||||
public List<LiveTimelineProjectorData> projecterList = new List<LiveTimelineProjectorData>();
|
||||
|
||||
public LiveTimelineFacialData facial1Set = new LiveTimelineFacialData();
|
||||
|
||||
public LiveTimelineKeyFacialEyeTrackDataList other4EyeTrackKeys = new LiveTimelineKeyFacialEyeTrackDataList();
|
||||
|
||||
public LiveTimelineOther4FacialData[] other4FacialArray = new LiveTimelineOther4FacialData[8]
|
||||
{
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData(),
|
||||
new LiveTimelineOther4FacialData()
|
||||
};
|
||||
|
||||
public LiveTimelineKeyFacialNoiseDataList facialNoiseKeys = new LiveTimelineKeyFacialNoiseDataList();
|
||||
|
||||
public LiveTimelineKeyCharaMotionNoiseDataList charaMotionNoiseKeys = new LiveTimelineKeyCharaMotionNoiseDataList();
|
||||
|
||||
public LiveTimelineKeyCharaCySpringDataList charaCySpringKeys = new LiveTimelineKeyCharaCySpringDataList();
|
||||
|
||||
public LiveTimelineFormationOffsetData formationOffsetSet = new LiveTimelineFormationOffsetData();
|
||||
|
||||
public List<LiveTimelineKeyFormationOffsetDataList> formationOffsetAdditionalList = new List<LiveTimelineKeyFormationOffsetDataList>();
|
||||
|
||||
public List<LiveTimelineVolumeLightData> VolumeLightKeys = new List<LiveTimelineVolumeLightData>();
|
||||
|
||||
public List<LiveTimelineHdrBloomData> HdrBloomKeys = new List<LiveTimelineHdrBloomData>();
|
||||
|
||||
public List<LiveTimelineParticleData> particleList = new List<LiveTimelineParticleData>();
|
||||
|
||||
public List<LiveTimelineParticleGroupData> particleGroupList = new List<LiveTimelineParticleGroupData>();
|
||||
|
||||
public List<LiveTimelineLaserData> laserList = new List<LiveTimelineLaserData>();
|
||||
|
||||
public List<LiveTimelineEffectData> effectList = new List<LiveTimelineEffectData>();
|
||||
|
||||
public List<LiveTimelineEnvironmentData> environmentDataLists = new List<LiveTimelineEnvironmentData>();
|
||||
|
||||
public List<LiveTimelineGlobalLightData> globalLightDataLists = new List<LiveTimelineGlobalLightData>();
|
||||
|
||||
public List<LiveTimelineGlobalFogData> globalFogDataLists = new List<LiveTimelineGlobalFogData>();
|
||||
|
||||
public List<LiveTimelineColorCorrectionData> colorCorrectionDataLists = new List<LiveTimelineColorCorrectionData>();
|
||||
|
||||
public LiveTimelineKeyTiltShiftDataList tiltShiftKeys = new LiveTimelineKeyTiltShiftDataList();
|
||||
|
||||
public List<LiveTimelineLightShuftData> lightShuftKeys = new List<LiveTimelineLightShuftData>();
|
||||
|
||||
public List<LiveTimelineSweatLocatorData> sweatLocatorList = new List<LiveTimelineSweatLocatorData>();
|
||||
|
||||
public List<LiveTimelineLensFlareData> lensFlareList = new List<LiveTimelineLensFlareData>();
|
||||
|
||||
public List<LiveTimelineMonitorCameraPositionData> monitorCameraPosKeys = new List<LiveTimelineMonitorCameraPositionData>();
|
||||
|
||||
public List<LiveTimelineMonitorCameraLookAtData> monitorLookAtPosKeys = new List<LiveTimelineMonitorCameraLookAtData>();
|
||||
|
||||
public List<LiveTimelineMultiCameraPositionData> multiCameraPositionKeys = new List<LiveTimelineMultiCameraPositionData>();
|
||||
|
||||
public List<LiveTimelineMultiCameraLookAtData> multiCameraLookAtKeys = new List<LiveTimelineMultiCameraLookAtData>();
|
||||
|
||||
public List<LiveTimelineA2UConfigData> a2uConfigList = new List<LiveTimelineA2UConfigData>();
|
||||
|
||||
public List<LiveTimelineA2UData> a2uList = new List<LiveTimelineA2UData>();
|
||||
|
||||
public List<LiveTimelineGlassData> glassList = new List<LiveTimelineGlassData>();
|
||||
|
||||
public List<LiveTimelineShaderControlData> shdCtrlList = new List<LiveTimelineShaderControlData>();
|
||||
|
||||
public LiveTimelineCharaIKData charaIkSet = new LiveTimelineCharaIKData();
|
||||
|
||||
public LiveTimelineKeyCharaFootLightDataList charaFootLightKeys = new LiveTimelineKeyCharaFootLightDataList();
|
||||
|
||||
public List<LiveTimelineStageGazeData> stageGazeList = new List<LiveTimelineStageGazeData>();
|
||||
|
||||
public List<LiveTimelineMobCyalumeData> mobCyalumeDataList = new List<LiveTimelineMobCyalumeData>();
|
||||
|
||||
public List<LiveTimelineCharaHeightMotSeqData> charaHeightMotList = new List<LiveTimelineCharaHeightMotSeqData>();
|
||||
|
||||
public List<LiveTimelineCharaWindData> charaWindList = new List<LiveTimelineCharaWindData>();
|
||||
|
||||
public LiveTimelineKeyMobCyalume3DRootDataList mobCyalume3DRootKeys = new LiveTimelineKeyMobCyalume3DRootDataList();
|
||||
|
||||
public LiveTimelineKeyMobCyalume3DBloomDataList mobCyalume3DBloomKeys = new LiveTimelineKeyMobCyalume3DBloomDataList();
|
||||
|
||||
public LiveTimelineKeyMobCyalume3DColorDataList mobCyalume3DColorKeys = new LiveTimelineKeyMobCyalume3DColorDataList();
|
||||
|
||||
public LiveTimelineKeyMobCyalume3DLightingDataList mobCyalume3DLightingKeys = new LiveTimelineKeyMobCyalume3DLightingDataList();
|
||||
|
||||
public LiveTimelineKeyMobCyalume3DLookAtModeDataList mobCyalume3DLookAtModeKeys = new LiveTimelineKeyMobCyalume3DLookAtModeDataList();
|
||||
|
||||
public List<LiveTimelineMobCyalume3DLookAtPositionData> mobCyalume3DLookAtPositionDataList = new List<LiveTimelineMobCyalume3DLookAtPositionData>();
|
||||
|
||||
public List<LiveTimelineMobCyalume3DPositionData> mobCyalume3DPositionDataList = new List<LiveTimelineMobCyalume3DPositionData>();
|
||||
|
||||
public LiveTimelineKeyDressChangeDataList dressChangeDataList = new LiveTimelineKeyDressChangeDataList();
|
||||
|
||||
private ILiveTimelineKeyDataList[] _keysArray;
|
||||
|
||||
public ILiveTimelineKeyDataList[] keysArray
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_keysArray == null)
|
||||
{
|
||||
List<ILiveTimelineKeyDataList> list = new List<ILiveTimelineKeyDataList>();
|
||||
list.Add(cameraPosKeys);
|
||||
list.Add(cameraLookAtKeys);
|
||||
list.Add(cameraFovKeys);
|
||||
list.Add(cameraRollKeys);
|
||||
list.Add(eventKeys);
|
||||
list.Add(cameraSwitcherKeys);
|
||||
list.Add(ripSyncKeys);
|
||||
list.Add(postEffectKeys);
|
||||
list.Add(cameraLayerKeys);
|
||||
list.Add(other4EyeTrackKeys);
|
||||
list.Add(facialNoiseKeys);
|
||||
list.Add(charaMotionNoiseKeys);
|
||||
list.Add(charaCySpringKeys);
|
||||
list.Add(tiltShiftKeys);
|
||||
list.Add(charaFootLightKeys);
|
||||
list.Add(crossFadeCameraPosKeys);
|
||||
list.Add(crossFadeCameraLookAtKeys);
|
||||
list.Add(crossFadeCameraFovKeys);
|
||||
list.Add(crossFadeCameraRollKeys);
|
||||
list.Add(crossFadeCameraAlphaKeys);
|
||||
list.Add(mobCyalume3DBloomKeys);
|
||||
list.Add(mobCyalume3DColorKeys);
|
||||
list.Add(mobCyalume3DLightingKeys);
|
||||
list.Add(mobCyalume3DLookAtModeKeys);
|
||||
list.Add(dressChangeDataList);
|
||||
|
||||
list.AddRange(GetKeysInGroup(charaMotSeqList));
|
||||
list.AddRange(GetKeysInGroup(bgColor1List));
|
||||
list.AddRange(GetKeysInGroup(bgColor2List));
|
||||
list.AddRange(GetKeysInGroup(monitorControlList));
|
||||
list.AddRange(GetKeysInGroup(projecterList));
|
||||
list.AddRange(facial1Set.GetKeyListArray());
|
||||
list.AddRange(GetKeysInGroup(particleList));
|
||||
list.AddRange(GetKeysInGroup(particleGroupList));
|
||||
list.AddRange(GetKeysInGroup(laserList));
|
||||
list.AddRange(GetKeysInGroup(effectList));
|
||||
list.AddRange(GetKeysInGroup(sweatLocatorList));
|
||||
list.AddRange(GetKeysInGroup(environmentDataLists));
|
||||
list.AddRange(GetKeysInGroup(globalLightDataLists));
|
||||
list.AddRange(GetKeysInGroup(globalFogDataLists));
|
||||
list.AddRange(GetKeysInGroup(colorCorrectionDataLists));
|
||||
list.AddRange(GetKeysInGroup(a2uConfigList));
|
||||
list.AddRange(GetKeysInGroup(a2uList));
|
||||
list.AddRange(GetKeysInGroup(glassList));
|
||||
list.AddRange(GetKeysInGroup(shdCtrlList));
|
||||
list.AddRange(GetKeysInGroup(charaMotOverwriteList));
|
||||
LiveTimelineOther4FacialData[] array = other4FacialArray;
|
||||
foreach (LiveTimelineOther4FacialData liveTimelineOther4FacialData in array)
|
||||
{
|
||||
list.AddRange(liveTimelineOther4FacialData.GetKeyListArray());
|
||||
}
|
||||
list.AddRange(formationOffsetSet.GetKeyListArray());
|
||||
list.AddRange(GetKeysInGroup(bgColor3List));
|
||||
list.AddRange(charaIkSet.GetKeyListArray());
|
||||
list.AddRange(GetKeysInGroup(stageGazeList));
|
||||
list.AddRange(GetKeysInGroup(mobCyalumeDataList));
|
||||
list.AddRange(GetKeysInGroup(charaHeightMotList));
|
||||
list.AddRange(GetKeysInGroup(monitorCameraPosKeys));
|
||||
list.AddRange(GetKeysInGroup(monitorLookAtPosKeys));
|
||||
list.AddRange(GetKeysInGroup(multiCameraPositionKeys));
|
||||
list.AddRange(GetKeysInGroup(multiCameraLookAtKeys));
|
||||
list.AddRange(GetKeysInGroup(lightShuftKeys));
|
||||
list.AddRange(GetKeysInGroup(lensFlareList));
|
||||
list.AddRange(GetKeysInGroup(charaWindList));
|
||||
list.AddRange(GetKeysInGroup(mobCyalume3DLookAtPositionDataList));
|
||||
list.AddRange(GetKeysInGroup(mobCyalume3DPositionDataList));
|
||||
|
||||
_keysArray = list.ToArray();
|
||||
}
|
||||
return _keysArray;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsEnable()
|
||||
{
|
||||
return enableAtRuntime;
|
||||
}
|
||||
|
||||
private ILiveTimelineKeyDataList[] GetKeysInGroup<T>(List<T> groups) where T : ILiveTimelineGroupData
|
||||
{
|
||||
List<ILiveTimelineKeyDataList> list = new List<ILiveTimelineKeyDataList>();
|
||||
foreach (T group in groups)
|
||||
{
|
||||
list.Add(group.GetKeyList());
|
||||
}
|
||||
return list.ToArray();
|
||||
}
|
||||
|
||||
private void UpdateStatusInGroup<T>(List<T> groups) where T : ILiveTimelineGroupData
|
||||
{
|
||||
foreach (T group in groups)
|
||||
{
|
||||
(group as ILiveTimelineGroupDataWithName).UpdateStatus();
|
||||
}
|
||||
}
|
||||
|
||||
public void OnLoad(LiveTimelineControl timelineControl)
|
||||
{
|
||||
for (int i = 0; i < keysArray.Length; i++)
|
||||
{
|
||||
ILiveTimelineKeyDataList liveTimelineKeyDataList = keysArray[i];
|
||||
int count = liveTimelineKeyDataList.Count;
|
||||
for (int j = 0; j < count; j++)
|
||||
{
|
||||
liveTimelineKeyDataList[j].OnLoad(timelineControl);
|
||||
}
|
||||
}
|
||||
UpdateStatusInGroup(bgColor1List);
|
||||
UpdateStatusInGroup(bgColor2List);
|
||||
UpdateStatusInGroup(monitorControlList);
|
||||
UpdateStatusInGroup(projecterList);
|
||||
UpdateStatusInGroup(animationList);
|
||||
UpdateStatusInGroup(textureAnimationList);
|
||||
UpdateStatusInGroup(transformList);
|
||||
UpdateStatusInGroup(rendererList);
|
||||
UpdateStatusInGroup(objectList);
|
||||
UpdateStatusInGroup(propsList);
|
||||
UpdateStatusInGroup(propsAttachList);
|
||||
UpdateStatusInGroup(particleList);
|
||||
UpdateStatusInGroup(particleGroupList);
|
||||
UpdateStatusInGroup(laserList);
|
||||
UpdateStatusInGroup(effectList);
|
||||
UpdateStatusInGroup(sweatLocatorList);
|
||||
UpdateStatusInGroup(environmentDataLists);
|
||||
UpdateStatusInGroup(globalLightDataLists);
|
||||
UpdateStatusInGroup(globalFogDataLists);
|
||||
UpdateStatusInGroup(colorCorrectionDataLists);
|
||||
UpdateStatusInGroup(a2uConfigList);
|
||||
UpdateStatusInGroup(a2uList);
|
||||
UpdateStatusInGroup(glassList);
|
||||
UpdateStatusInGroup(shdCtrlList);
|
||||
UpdateStatusInGroup(bgColor3List);
|
||||
UpdateStatusInGroup(stageGazeList);
|
||||
UpdateStatusInGroup(multiCameraPositionKeys);
|
||||
UpdateStatusInGroup(multiCameraLookAtKeys);
|
||||
UpdateStatusInGroup(monitorCameraPosKeys);
|
||||
UpdateStatusInGroup(monitorLookAtPosKeys);
|
||||
UpdateStatusInGroup(lightShuftKeys);
|
||||
UpdateStatusInGroup(lensFlareList);
|
||||
UpdateStatusInGroup(gazingObjectList);
|
||||
}
|
||||
|
||||
public int FindTimelineIndexInGroup(LiveTimelineKey key)
|
||||
{
|
||||
if (key == null)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return key.dataType switch
|
||||
{
|
||||
LiveTimelineKeyDataType.MonitorCameraPos => monitorCameraPosKeys.FindIndex((LiveTimelineMonitorCameraPositionData x) => x.keys.Contains(key)),
|
||||
LiveTimelineKeyDataType.MonitorCameraLookAt => monitorLookAtPosKeys.FindIndex((LiveTimelineMonitorCameraLookAtData x) => x.keys.Contains(key)),
|
||||
LiveTimelineKeyDataType.MultiCameraPos => multiCameraPositionKeys.FindIndex((LiveTimelineMultiCameraPositionData x) => x.keys.Contains(key)),
|
||||
LiveTimelineKeyDataType.MultiCameraLookAt => multiCameraLookAtKeys.FindIndex((LiveTimelineMultiCameraLookAtData x) => x.keys.Contains(key)),
|
||||
_ => -1,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f662ff48cd223342bee254576923a43
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac5b7c18465a8a2488697868673ec7c8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineA2USettings
|
||||
{
|
||||
[Serializable]
|
||||
public class Prefab
|
||||
{
|
||||
public string name = "";
|
||||
|
||||
public string path = "";
|
||||
}
|
||||
|
||||
public int flickRandomSeed = 123456789;
|
||||
|
||||
public uint flickCount = 40u;
|
||||
|
||||
public float flickStepSec = 0.06f;
|
||||
|
||||
public uint flickMin = 50u;
|
||||
|
||||
public uint flickMax = 53u;
|
||||
|
||||
public Prefab[] prefabs = new Prefab[0];
|
||||
|
||||
public string[] sprites = new string[0];
|
||||
|
||||
public int assetNo = 1;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 851003dfc4698054f88730286cc45f3e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineAlterAnimationSettings
|
||||
{
|
||||
[Serializable]
|
||||
public class AnimationNameList
|
||||
{
|
||||
[SerializeField]
|
||||
private string[] _list = new string[0];
|
||||
|
||||
public string this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return _list[index];
|
||||
}
|
||||
set
|
||||
{
|
||||
_list[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public int Length => _list.Length;
|
||||
|
||||
public AnimationNameList()
|
||||
{
|
||||
}
|
||||
|
||||
public AnimationNameList(int n)
|
||||
{
|
||||
_list = new string[n];
|
||||
}
|
||||
}
|
||||
|
||||
public AnimationNameList[] useAnimationNames = new AnimationNameList[0];
|
||||
|
||||
public AnimationNameList[] useOverwriteAnimationNames = new AnimationNameList[0];
|
||||
|
||||
public void Init()
|
||||
{
|
||||
useAnimationNames = new AnimationNameList[15];
|
||||
useOverwriteAnimationNames = new AnimationNameList[15];
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
useAnimationNames[i] = new AnimationNameList();
|
||||
useOverwriteAnimationNames[i] = new AnimationNameList();
|
||||
}
|
||||
}
|
||||
|
||||
public List<int> GetMotionUseCharaPosition(string motionName)
|
||||
{
|
||||
List<int> list = new List<int>();
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
AnimationNameList animationNameList = useAnimationNames[i];
|
||||
for (int j = 0; j < animationNameList.Length; j++)
|
||||
{
|
||||
if (motionName == animationNameList[j] && !list.Contains(i))
|
||||
{
|
||||
list.Add(i);
|
||||
}
|
||||
}
|
||||
animationNameList = useOverwriteAnimationNames[i];
|
||||
for (int k = 0; k < animationNameList.Length; k++)
|
||||
{
|
||||
if (motionName == animationNameList[k] && !list.Contains(i))
|
||||
{
|
||||
list.Add(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2020e455725a5204faead859f2c7a265
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharacterOptionSettings
|
||||
{
|
||||
public string[] optionName = new string[0];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f64dd5459216ba142891f3da7de8eec0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineCharacterSettings
|
||||
{
|
||||
public int[] motionSequenceIndices = new int[5];
|
||||
|
||||
public int[] motionOverwriteIndices = new int[15];
|
||||
|
||||
public bool[] useHighPolygonModel = new bool[15] { true, false, false, false, false, false, false, false, false, false, false, false, false, false, false };
|
||||
|
||||
public bool[] useHighPolygonModelForLightMode = new bool[15] { true, false, false, false, false, false, false, false, false, false, false, false, false, false, false };
|
||||
|
||||
public bool isCreateGroundCollision = true;
|
||||
|
||||
public float distanceForOutlineLOD = (float)Math.PI;
|
||||
|
||||
public float distanceForShaderLOD = (float)Math.PI;
|
||||
|
||||
public float distanceForCheekLOD = 1f;
|
||||
|
||||
public bool isCharaAxisRotateLateUpdate;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07fdfdff45494b34a9f535d7e59363f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineGamePlaySettings
|
||||
{
|
||||
public bool isFootShadowOff;
|
||||
|
||||
public bool isRichFootShadowOff;
|
||||
|
||||
public float distanceOutlineLOD = -1f;
|
||||
|
||||
public float distanceRichOutlineLOD = -1f;
|
||||
|
||||
public float distanceCheekLOD = -1f;
|
||||
|
||||
public float distanceRichCheekLOD = -1f;
|
||||
|
||||
public bool isDofBloomOff;
|
||||
|
||||
public bool isRichDofBloomOff;
|
||||
|
||||
public bool isMirrorScanOff;
|
||||
|
||||
public bool isMonitorCameraOff;
|
||||
|
||||
public bool isSunShaftOff;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e893dc74d6d4c1646b465b9e85c74001
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineHdrBloomSettings
|
||||
{
|
||||
public float sepBlurSpread = 2.5f;
|
||||
|
||||
public float bloomIntensity = 0.3f;
|
||||
|
||||
public int bloomBlurIterations = 1;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b10d8419de3398b41a7202af4edeca9e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineIndirectLightShuftSettings
|
||||
{
|
||||
public enum ShaftType
|
||||
{
|
||||
Default,
|
||||
Vr03
|
||||
}
|
||||
|
||||
public int id = 1;
|
||||
|
||||
public ShaftType shaftType;
|
||||
|
||||
public int shaftTextureNameLength;
|
||||
|
||||
public string[] shaftTextureNames = new string[0];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8cea0aaf112745244839ff5b0a62a26e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineLensFlareSetting
|
||||
{
|
||||
[Serializable]
|
||||
public class FlareDataGroup
|
||||
{
|
||||
public int objectId;
|
||||
|
||||
public bool isHqOnly;
|
||||
}
|
||||
|
||||
public FlareDataGroup[] flareDataGroup = new FlareDataGroup[0];
|
||||
|
||||
public int flareDataGroupCount;
|
||||
|
||||
public float lightStandard = 3f;
|
||||
|
||||
public float underLimit;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bc41246b43a26c244b3db576be663a93
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineMobCyalume3DSettings
|
||||
{
|
||||
public bool isEnableTimeOffset;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90ca448aa4b819442b18a2fd596c4522
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineMonitorCameraSettings
|
||||
{
|
||||
public int cntCamera;
|
||||
|
||||
public float renderTextureWidth;
|
||||
|
||||
public float renderTextureHeight;
|
||||
|
||||
[NonSerialized]
|
||||
public static float MINIMUM_WIDTH = 128f;
|
||||
|
||||
[NonSerialized]
|
||||
public static float MAXIMUM_WIDTH = 1280f;
|
||||
|
||||
[NonSerialized]
|
||||
public static float MINIMUM_HEIGHT = 128f;
|
||||
|
||||
[NonSerialized]
|
||||
public static float MAXIMUM_HEIGHT = 1280f;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5738cf1898542941b15582a5f3dce1b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineMonitorSettings
|
||||
{
|
||||
public int charaTextureNum;
|
||||
|
||||
public LiveCharaPosition[] charaTexturePosition = new LiveCharaPosition[0];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9046566585adfb045b72d56a73f33f01
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineMultiCameraMaskSettings
|
||||
{
|
||||
public int maskNum;
|
||||
|
||||
public Mask[] maskData = new Mask[0];
|
||||
|
||||
[Serializable]
|
||||
public class Mask
|
||||
{
|
||||
public string objectName = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 140903dddc6c55b488bb345d79a3c01a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineMultiCameraSettings
|
||||
{
|
||||
public int cameraNum;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c06090faf8d27aa4c9dcbc5e01406b92
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelinePropsSettings
|
||||
{
|
||||
public enum PropsConditionType
|
||||
{
|
||||
Default,
|
||||
CharaAttribute,
|
||||
CharaPosition,
|
||||
CharaID,
|
||||
CardID,
|
||||
DressType,
|
||||
DressID
|
||||
}
|
||||
|
||||
public enum PropsAttribute
|
||||
{
|
||||
Cute,
|
||||
Cool,
|
||||
Passion
|
||||
}
|
||||
|
||||
public enum AlterPropsMode
|
||||
{
|
||||
None,
|
||||
LeftHanded
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class PropsConditionData
|
||||
{
|
||||
public PropsConditionType Type;
|
||||
|
||||
public int Value;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class PropsConditionGroup
|
||||
{
|
||||
public PropsConditionData[] propsConditionData = new PropsConditionData[0];
|
||||
|
||||
public int propsConditionCount;
|
||||
|
||||
public string propsName = "";
|
||||
|
||||
public bool random;
|
||||
|
||||
public string[] randomNameArray;
|
||||
|
||||
public bool satisfiesAllConditions;
|
||||
|
||||
public float bodyScaleS = 1f;
|
||||
|
||||
public float bodyScaleM = 1f;
|
||||
|
||||
public float bodyScaleL = 1f;
|
||||
|
||||
public float bodyScaleLL = 1f;
|
||||
|
||||
public AlterPropsMode alterPropsMode;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class PropsDataGroup
|
||||
{
|
||||
public PropsConditionGroup[] propsConditionGroup = new PropsConditionGroup[0];
|
||||
|
||||
public int propsConditionGroupCount;
|
||||
}
|
||||
|
||||
public PropsDataGroup[] propsDataGroup = new PropsDataGroup[0];
|
||||
|
||||
public int propsDataGroupCount;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc09cab0990327e40ad3af931637c8fb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineStageObjectsSettings
|
||||
{
|
||||
[Serializable]
|
||||
public class Object
|
||||
{
|
||||
public int replaceQuality;
|
||||
|
||||
public int objectId;
|
||||
|
||||
public string objectName = string.Empty;
|
||||
}
|
||||
|
||||
public int objectCount;
|
||||
|
||||
public Object[] objectData = new Object[0];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d18220ed7da41a4a8069e76d2ec45d4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineSunshaftsSettings
|
||||
{
|
||||
public PostEffectLive3D.SunShaftsResolution resolution = PostEffectLive3D.SunShaftsResolution.Normal;
|
||||
|
||||
public PostEffectLive3D.ShaftsScreenBlendMode screenBlendMode = PostEffectLive3D.ShaftsScreenBlendMode.Add;
|
||||
|
||||
public Color sunColor = Color.white;
|
||||
|
||||
public float sunPower;
|
||||
|
||||
public float intensity = 0.5f;
|
||||
|
||||
public float fadeStart = 40f;
|
||||
|
||||
public float fadeMix = 18f;
|
||||
|
||||
public float blackLevel = 0.1f;
|
||||
|
||||
public float komorebiRate;
|
||||
|
||||
public float blurRadius = 5f;
|
||||
|
||||
public int blurIterations = 2;
|
||||
|
||||
public bool isEnabledBorderClear;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b1da20d856099ac4eb54a0ed2bfcfc72
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineSwitchSheetAltSetting
|
||||
{
|
||||
[Serializable]
|
||||
public class LeftHanded
|
||||
{
|
||||
public int[] targetCharaList = new int[0];
|
||||
|
||||
public int targetCharaCount;
|
||||
}
|
||||
|
||||
public LiveTimelineData.AlterSheetMode alterSheetMode;
|
||||
|
||||
public LeftHanded leftHanded;
|
||||
|
||||
public void Init()
|
||||
{
|
||||
if (alterSheetMode == LiveTimelineData.AlterSheetMode.LeftHanded)
|
||||
{
|
||||
if (leftHanded == null)
|
||||
{
|
||||
leftHanded = new LeftHanded();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
leftHanded = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 280fbd3d0f2a57548a5d96a1aecc77ca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineSwitchSheetSetting
|
||||
{
|
||||
public int[] characterNo = new int[15];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b9133d097cc14d4ca7488767aa30c2e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineSwitchSheetTargetTimelineSetting
|
||||
{
|
||||
public enum Timeline
|
||||
{
|
||||
Camera,
|
||||
PostEffect,
|
||||
FormationOffset,
|
||||
PropsAttachControl,
|
||||
Facial,
|
||||
Max
|
||||
}
|
||||
|
||||
public bool[] isTargetTimelineList = new bool[5];
|
||||
|
||||
public void SetAllOff()
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
isTargetTimelineList[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetAllOn()
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
isTargetTimelineList[i] = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void Set(Timeline timeline, bool flag)
|
||||
{
|
||||
if (Timeline.Camera <= timeline && (int)timeline < isTargetTimelineList.Length)
|
||||
{
|
||||
isTargetTimelineList[(int)timeline] = flag;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Get(Timeline timeline)
|
||||
{
|
||||
if (Timeline.Camera <= timeline && (int)timeline < isTargetTimelineList.Length)
|
||||
{
|
||||
return isTargetTimelineList[(int)timeline];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1ab5b0b38b5c0e43af7b34091090bca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineTransparentCameraSettings
|
||||
{
|
||||
public bool isEnable;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a8c41b1a19730d4688df9a08fb7da01
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 782ee549fd7891f488289f419d8c4e8e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
namespace Cutt
|
||||
{
|
||||
public class ILiveTimelineGroupData
|
||||
{
|
||||
public virtual ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public virtual void UpdateStatus()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d8bc164b565565545a2a34a5a9a639b5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
namespace Cutt
|
||||
{
|
||||
public class ILiveTimelineGroupDataWithName : ILiveTimelineGroupData
|
||||
{
|
||||
public string name;
|
||||
|
||||
private int _nameHash;
|
||||
|
||||
public int nameHash => _nameHash;
|
||||
|
||||
public override void UpdateStatus()
|
||||
{
|
||||
base.UpdateStatus();
|
||||
_nameHash = FNVHash.Generate(name);
|
||||
}
|
||||
|
||||
public ILiveTimelineGroupDataWithName()
|
||||
{
|
||||
name = "";
|
||||
_nameHash = 0;
|
||||
}
|
||||
|
||||
public ILiveTimelineGroupDataWithName(string default_name)
|
||||
{
|
||||
name = default_name;
|
||||
_nameHash = FNVHash.Generate(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58f8f2e540ea4374393a3948caa65a4e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineA2UConfigData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "A2UConfig";
|
||||
|
||||
public LiveTimelineKeyA2UConfigDataList keys = new LiveTimelineKeyA2UConfigDataList();
|
||||
|
||||
public LiveTimelineA2UConfigData() : base("A2UConfig")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8524fa9d6412b5b41b8af26a0b55e2d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineA2UData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "A2U";
|
||||
|
||||
public LiveTimelineKeyA2UDataList keys = new LiveTimelineKeyA2UDataList();
|
||||
|
||||
public LiveTimelineA2UData() : base("A2U")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c43157b4164e72346893ed982b3df67d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineAnimationData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "Animation";
|
||||
|
||||
public LiveTimelineKeyAnimationDataList keys = new LiveTimelineKeyAnimationDataList();
|
||||
|
||||
public LiveTimelineAnimationData() : base("Animation")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ddf591daf1db22b49b43ee070e26c74f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineBgColor1Data : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "BgColor1";
|
||||
|
||||
public LiveTimelineKeyBgColor1DataList keys = new LiveTimelineKeyBgColor1DataList();
|
||||
|
||||
public LiveTimelineBgColor1Data() : base("BgColor1")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 72d253ce97599874583f7284a829f3de
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineBgColor2Data : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "BgColor2";
|
||||
|
||||
public LiveTimelineKeyBgColor2DataList keys = new LiveTimelineKeyBgColor2DataList();
|
||||
|
||||
public int groupNo = -1;
|
||||
|
||||
public LiveTimelineBgColor2Data() : base("BgColor2")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46b4649f0a79a924988f693ed20f740e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineBgColor3Data : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "BgColor3";
|
||||
|
||||
public LiveTimelineKeyBgColor3DataList keys = new LiveTimelineKeyBgColor3DataList();
|
||||
|
||||
public LiveTimelineBgColor3Data() : base("BgColor3")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b2c9ded9ee14634daee0accb8f6efe6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineColorCorrectionData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "ColorCorrection";
|
||||
|
||||
public LiveTimelineKeyColorCorrectionDataList keys = new LiveTimelineKeyColorCorrectionDataList();
|
||||
|
||||
public LiveTimelineColorCorrectionData() : base("ColorCorrection")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b4ef9999124db540a691d8764b43c7a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineDressChangeData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "Glass";
|
||||
|
||||
public LiveTimelineKeyGlassDataList keys = new LiveTimelineKeyGlassDataList();
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList() { return keys; }
|
||||
|
||||
public LiveTimelineDressChangeData() : base("Glass") { }
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60edc4157656ce64bb74de54614aa83a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineEffectData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "Effect";
|
||||
|
||||
public LiveTimelineKeyEffectDataList keys = new LiveTimelineKeyEffectDataList();
|
||||
|
||||
[NonSerialized]
|
||||
public int updatedKeyFrame;
|
||||
|
||||
public LiveTimelineEffectData() : base("Effect")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9327c653256de1647a9dd327ab7e32d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineEnvironmentData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "Environment";
|
||||
|
||||
public LiveTimelineKeyStageEnvironmentDataList keys = new LiveTimelineKeyStageEnvironmentDataList();
|
||||
|
||||
public LiveTimelineEnvironmentData() : base("Environment")
|
||||
{
|
||||
}
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fd51fa21a7b628a4fab82ff8ca5b350a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineGazingObjectData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
public enum Axis
|
||||
{
|
||||
X,
|
||||
Y,
|
||||
Z,
|
||||
X_Negative,
|
||||
Y_Negative,
|
||||
Z_Negative
|
||||
}
|
||||
|
||||
private const string default_name = "Gazing Object";
|
||||
|
||||
public LiveTimelineKeyGazingObjectDataList keys = new LiveTimelineKeyGazingObjectDataList();
|
||||
|
||||
public LiveTimelineGazingObjectData.Axis forwardAxis = Axis.Z;
|
||||
|
||||
private static readonly Quaternion[] forwardAxisFixRotations;
|
||||
|
||||
public override ILiveTimelineKeyDataList GetKeyList()
|
||||
{
|
||||
return keys;
|
||||
}
|
||||
|
||||
static LiveTimelineGazingObjectData()
|
||||
{
|
||||
forwardAxisFixRotations = new Quaternion[6]
|
||||
{
|
||||
Quaternion.FromToRotation(Vector3.forward, Vector3.left),
|
||||
Quaternion.FromToRotation(Vector3.forward, Vector3.down),
|
||||
Quaternion.identity,
|
||||
Quaternion.FromToRotation(Vector3.forward, Vector3.right),
|
||||
Quaternion.FromToRotation(Vector3.forward, Vector3.up),
|
||||
Quaternion.FromToRotation(Vector3.forward, Vector3.back)
|
||||
};
|
||||
}
|
||||
|
||||
public void ApplyFixRotation(ref Quaternion rot)
|
||||
{
|
||||
rot *= forwardAxisFixRotations[(int)forwardAxis];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c02c78be30f9e94895f98bc26a3e309
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user