Add custom head, live character shader control, and live stage control. (#88)
* Bug fix, improved UI layout and live vocals * Bug Fixes, New Live Compatibility * Android build support * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Fix issues with the new version of the game * bug fix * add config button * Improve performance * Sync fork * bug fix, new uma compatibility * Add /UserSettings to gitignore * bug fix, add live characher shader control * fix compilation errors * fix compilation errors 2 * fix the live lighting calculation logic * bug fix, add editor layout settings to gitignore * bug fix, add editor layout settings to gitignore * Add time scale keys for live * live camera bug fix * add live stage control, optimize live performance * fix build error * add uma head custom
This commit is contained in:
+67
-1
@@ -1,6 +1,8 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using static Gallop.Live.Cutt.LiveTimelineDefine;
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
{
|
||||
@@ -13,7 +15,71 @@ namespace Gallop.Live.Cutt
|
||||
Max = 4
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyBgColor1Data : LiveTimelineKeyWithInterpolate
|
||||
{
|
||||
// Fields
|
||||
public Color color; // 0x2c
|
||||
public float power; // 0x3c
|
||||
public float scale; // 0x40
|
||||
public int flags; // 0x44
|
||||
public ColorType ColorType; // 0x48
|
||||
public float Saturation; // 0x4c
|
||||
public Color toonDarkColor; // 0x50
|
||||
public Color toonBrightColor; // 0x60
|
||||
public float vertexColorToonPower; // 0x70
|
||||
public float outlineWidthPower; // 0x74
|
||||
public Color outlineColor; // 0x78
|
||||
public OutlineColorBlend outlineColorBlend; // 0x88
|
||||
public LightBlendMode LightBlendMode; // 0x8c
|
||||
public bool IsProjector; // 0x90
|
||||
public string BlinkLightName; // 0x98
|
||||
public int BlinkLightNameHash; // 0xa0
|
||||
public int BlinkLightContainerIndex; // 0xa4
|
||||
public float BlinkLightBrightnessPower; // 0xa8
|
||||
public bool IsAdjustedBlinkLightColor; // 0xac
|
||||
public LiveTimelineKeyLoopType loopType; // 0xb0
|
||||
public int loopCount; // 0xb4
|
||||
public int loopExecutedCount; // 0xb8
|
||||
public int loopIntervalFrame; // 0xbc
|
||||
public bool isPasteLoopUnit; // 0xc0
|
||||
public bool isChangeLoopInterpolate; // 0xc1
|
||||
public float f32; // 0xc4
|
||||
public LiveTimelineKeyLoopType _loopType; // 0xc8
|
||||
public int _loopCount; // 0xcc
|
||||
public int _loopExecutedCount; // 0xd0
|
||||
public int _loopIntervalFrame; // 0xd4
|
||||
public bool _isChangeLoopInterpolate; // 0xd8
|
||||
//private const Int32 ATTR_SILHOUETTE; // 0x0
|
||||
//private const Int32 ATTR_SYNC_BLINKLIGHT; // 0x0
|
||||
|
||||
public bool IsSilhouette { get; set; }
|
||||
public bool IsSyncBlinkLight { get; set; }
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyBgColor1DataList : LiveTimelineKeyDataListTemplate<LiveTimelineKeyBgColor1Data>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineBgColor1Data : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
// Fields
|
||||
private const string DEFAULT_NAME = "BgColor1"; // 0x0
|
||||
public LiveTimelineKeyBgColor1DataList keys; // 0x28
|
||||
private int[] _targetCharaIdArray; // 0x30
|
||||
private int[] _targetDressIdArray; // 0x38
|
||||
|
||||
// Properties
|
||||
public int[] TargetCharaIdArray { get; }
|
||||
public int[] TargetDressIdArray { get; }
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class ILiveTimelineGroupDataWithName : ILiveTimelineGroupData
|
||||
{
|
||||
public string name;
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using static Gallop.Live.Cutt.LiveTimelineDefine;
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyBgColor2Data : LiveTimelineKeyWithInterpolate
|
||||
{
|
||||
// Fields
|
||||
public Color color1; // 0x2c
|
||||
public Color color2; // 0x3c
|
||||
public float power; // 0x4c
|
||||
public string BlinkLightName; // 0x50
|
||||
public int BlinkLightNameHash; // 0x58
|
||||
public int BlinkLightContainerIndex; // 0x5c
|
||||
public float BlinkLightBrightnessPower; // 0x60
|
||||
public bool IsSyncBlinkLightToColor1; // 0x64
|
||||
public bool IsSyncBlinkLightToColor2; // 0x65
|
||||
public bool IsAdjustedBlinkLightColor; // 0x66
|
||||
public LiveTimelineKeyLoopType loopType; // 0x68
|
||||
public int loopCount; // 0x6c
|
||||
public int loopExecutedCount; // 0x70
|
||||
public int loopIntervalFrame; // 0x74
|
||||
public bool isPasteLoopUnit; // 0x78
|
||||
public bool isChangeLoopInterpolate; // 0x79
|
||||
public float f32; // 0x7c
|
||||
public LiveTimelineKeyLoopType _loopType; // 0x80
|
||||
public int _loopCount; // 0x84
|
||||
public int _loopExecutedCount; // 0x88
|
||||
public int _loopIntervalFrame; // 0x8c
|
||||
public bool _isChangeLoopInterpolate; // 0x90
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyBgColor2DataList : LiveTimelineKeyDataListTemplate<LiveTimelineKeyBgColor2Data>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineBgColor2Data : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
// Fields
|
||||
private const string DEFAULT_NAME = "BgColor2"; // 0x0
|
||||
public LiveTimelineKeyBgColor1DataList keys; // 0x28
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 642bf32136ecd1740bff1df8e635cc20
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+18
@@ -1,6 +1,8 @@
|
||||
using Gallop.Live.Cutt;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Cryptography;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
@@ -100,6 +102,22 @@ namespace Gallop.Live.Cutt
|
||||
private bool _isUpdatedParentObject;
|
||||
private Transform _parentObjectTransform;
|
||||
private int _parentObjectTargetCount;
|
||||
|
||||
public Transform GetParentObjectTransform(LiveTimelineControl liveTimelineControl)
|
||||
{
|
||||
if (_parentObjectTransform != null)
|
||||
{
|
||||
return _parentObjectTransform;
|
||||
}
|
||||
|
||||
if (liveTimelineControl.StageObjectMap.TryGetValue(ParentObjectName, out GameObject gameObject))
|
||||
{
|
||||
_parentObjectTransform = gameObject.transform;
|
||||
return _parentObjectTransform;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using static Gallop.Live.Cutt.LiveTimelineDefine;
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyGlobalLightData : LiveTimelineKeyWithInterpolate
|
||||
{
|
||||
// Static field
|
||||
public static readonly Color DefaultRimColor;
|
||||
|
||||
// Public fields
|
||||
public Vector3 lightDir;
|
||||
public Color rimColor;
|
||||
public float rimStep;
|
||||
public float rimFeather;
|
||||
public float rimSpecRate;
|
||||
public float globalRimShadowRate;
|
||||
public bool cameraFollow;
|
||||
public float RimHorizonOffset;
|
||||
public float RimVerticalOffset;
|
||||
public float RimHorizonOffset2;
|
||||
public float RimVerticalOffset2;
|
||||
public Color rimColor2;
|
||||
public float rimStep2;
|
||||
public float rimFeather2;
|
||||
public float rimSpecRate2;
|
||||
public float globalRimShadowRate2;
|
||||
public LiveCharaPositionFlag flags;
|
||||
public string BlinkLightName;
|
||||
public int BlinkLightNameHash;
|
||||
public int BlinkLightContainerIndex;
|
||||
public LiveTimelineKeyLoopType loopType;
|
||||
public int loopCount;
|
||||
public int loopExecutedCount;
|
||||
public int loopIntervalFrame;
|
||||
public bool isPasteLoopUnit;
|
||||
public bool isChangeLoopInterpolate;
|
||||
|
||||
// Properties
|
||||
public bool IsSyncBlinkLightToRimColor { get; set; }
|
||||
public bool IsSyncBlinkLightToRimColor2 { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyGlobalLightDataList : LiveTimelineKeyDataListTemplate<LiveTimelineKeyGlobalLightData>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineGlobalLightData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "GlobalLight";
|
||||
public LiveTimelineKeyGlobalLightDataList keys;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dcf99bb4db6442b42ace13bc95add694
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+57
@@ -1,3 +1,6 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
{
|
||||
public enum LiveCharaPosition
|
||||
@@ -28,4 +31,58 @@ namespace Gallop.Live.Cutt
|
||||
Right = 2,
|
||||
CharacterMax = 17
|
||||
}
|
||||
|
||||
public enum AttachType
|
||||
{
|
||||
None = 0,
|
||||
Camera = 1,
|
||||
Character = 2,
|
||||
}
|
||||
|
||||
public enum OffsetType
|
||||
{
|
||||
Direct = 0,
|
||||
Add = 1,
|
||||
}
|
||||
|
||||
|
||||
public enum LayerType
|
||||
{
|
||||
None = 0,
|
||||
Normal = 1,
|
||||
NotReflect = 2,
|
||||
Projector = 3,
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyObjectDataList : LiveTimelineKeyDataListTemplate<LiveTimelineKeyObjectData>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyObjectData : LiveTimelineKeyWithInterpolate
|
||||
{
|
||||
public Vector3 position;
|
||||
public Vector3 rotate;
|
||||
public Vector3 scale;
|
||||
public bool renderEnable;
|
||||
public AttachType AttachTarget;
|
||||
public int CharacterPosition;
|
||||
public int MultiCameraIndex;
|
||||
public OffsetType OffsetValueType;
|
||||
public LayerType LayerTypeValue;
|
||||
public bool IsLayerTypeRecursively;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineObjectData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
// Fields
|
||||
private const string default_name = "Object";
|
||||
public LiveTimelineKeyObjectDataList keys;
|
||||
public bool enablePosition;
|
||||
public bool enableRotate;
|
||||
public bool enableScale;
|
||||
}
|
||||
}
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
{
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyTransformDataList : LiveTimelineKeyDataListTemplate<LiveTimelineKeyTransformData>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineKeyTransformData : LiveTimelineKeyWithInterpolate
|
||||
{
|
||||
public Vector3 position;
|
||||
public Vector3 rotate;
|
||||
public Vector3 scale;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class LiveTimelineTransformData : ILiveTimelineGroupDataWithName
|
||||
{
|
||||
private const string default_name = "Transform";
|
||||
public LiveTimelineKeyTransformDataList keys;
|
||||
public bool enablePosition;
|
||||
public bool enableRotate;
|
||||
public bool enableScale;
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 802d655b98ea2e94ebf22b8c396babd1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user