Change lighting color

This commit is contained in:
CroakFang
2022-09-17 17:08:05 +08:00
parent 38da622e62
commit a97613aff1
4 changed files with 14 additions and 10 deletions
+6 -6
View File
@@ -51,7 +51,7 @@ AnimatorState:
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: motion_s m_Name: motion_e
m_Speed: 1 m_Speed: 1
m_CycleOffset: 0 m_CycleOffset: 0
m_Transitions: m_Transitions:
@@ -140,19 +140,19 @@ AnimatorController:
m_DefaultFloat: 1 m_DefaultFloat: 1
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: next - m_Name: next
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: next_s - m_Name: next_s
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
m_AnimatorLayers: m_AnimatorLayers:
- serializedVersion: 5 - serializedVersion: 5
m_Name: Base Layer m_Name: Base Layer
@@ -229,7 +229,7 @@ AnimatorState:
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: New State m_Name: motion_s
m_Speed: 1 m_Speed: 1
m_CycleOffset: 0 m_CycleOffset: 0
m_Transitions: m_Transitions:
@@ -288,7 +288,7 @@ AnimatorStateTransition:
m_Mute: 0 m_Mute: 0
m_IsExit: 0 m_IsExit: 0
serializedVersion: 3 serializedVersion: 3
m_TransitionDuration: 0.2 m_TransitionDuration: 0
m_TransitionOffset: 0 m_TransitionOffset: 0
m_ExitTime: 1 m_ExitTime: 1
m_HasExitTime: 1 m_HasExitTime: 1
+6 -2
View File
@@ -4237,6 +4237,10 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: Picker 2.0 value: Picker 2.0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 157272, guid: 916ee089a0d7b63419075f91e1c657ec, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 11423364, guid: 916ee089a0d7b63419075f91e1c657ec, type: 3} - target: {fileID: 11423364, guid: 916ee089a0d7b63419075f91e1c657ec, type: 3}
propertyPath: Setup.ShowHsv propertyPath: Setup.ShowHsv
value: 0 value: 0
@@ -9856,7 +9860,7 @@ Light:
serializedVersion: 10 serializedVersion: 10
m_Type: 1 m_Type: 1
m_Shape: 0 m_Shape: 0
m_Color: {r: 1, g: 0.972549, b: 0.8901961, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1 m_Intensity: 1
m_Range: 10 m_Range: 10
m_SpotAngle: 30 m_SpotAngle: 30
@@ -12030,7 +12034,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 1882365342} m_HandleRect: {fileID: 1882365342}
m_Direction: 2 m_Direction: 2
m_Value: 1 m_Value: 1
m_Size: 0.5800894 m_Size: 0.58008933
m_NumberOfSteps: 0 m_NumberOfSteps: 0
m_OnValueChanged: m_OnValueChanged:
m_PersistentCalls: m_PersistentCalls:
+2 -1
View File
@@ -843,6 +843,7 @@ public class UmaViewerBuilder : MonoBehaviour
RecursiveLoadAsset(motion_e); RecursiveLoadAsset(motion_e);
RecursiveLoadAsset(motion_s); RecursiveLoadAsset(motion_s);
} }
CurrentUMAContainer.OverrideController["clip_1"] = CurrentUMAContainer.OverrideController["clip_2"]; CurrentUMAContainer.OverrideController["clip_1"] = CurrentUMAContainer.OverrideController["clip_2"];
var lastTime = CurrentUMAContainer.UmaAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime; var lastTime = CurrentUMAContainer.UmaAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime;
CurrentUMAContainer.UmaAnimator.Play("motion_1", 0, lastTime); CurrentUMAContainer.UmaAnimator.Play("motion_1", 0, lastTime);
@@ -894,5 +895,5 @@ public class UmaViewerBuilder : MonoBehaviour
UI.LoadedAssetsClear(); UI.LoadedAssetsClear();
} }
} }
-1
View File
@@ -31,7 +31,6 @@ public class UmaViewerMain : MonoBehaviour
{ {
Instance = this; Instance = this;
Application.targetFrameRate = -1; Application.targetFrameRate = -1;
if (!Application.isEditor) Debug.unityLogger.logEnabled = false;
AbList = UmaDatabaseController.Instance.MetaEntries.ToList(); AbList = UmaDatabaseController.Instance.MetaEntries.ToList();
} }