diff --git a/Assets/Scenes/Version2.unity b/Assets/Scenes/Version2.unity index 1a6f0e4..a2fcd53 100644 --- a/Assets/Scenes/Version2.unity +++ b/Assets/Scenes/Version2.unity @@ -11332,7 +11332,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &523631780 RectTransform: m_ObjectHideFlags: 0 @@ -13042,7 +13042,7 @@ MonoBehaviour: m_Elasticity: 0.1 m_Inertia: 1 m_DecelerationRate: 0.135 - m_ScrollSensitivity: 90 + m_ScrollSensitivity: -90 m_Viewport: {fileID: 1834195527} m_HorizontalScrollbar: {fileID: 960399989} m_VerticalScrollbar: {fileID: 0} @@ -20938,7 +20938,7 @@ MonoBehaviour: m_TargetGraphic: {fileID: 1870757782} m_HandleRect: {fileID: 1870757781} m_Direction: 0 - m_Value: 0 + m_Value: 1 m_Size: 1 m_NumberOfSteps: 0 m_OnValueChanged: @@ -24739,7 +24739,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 250} + m_SizeDelta: {x: -750, y: 250} m_Pivot: {x: 0, y: 1} --- !u!114 &1143771493 MonoBehaviour: @@ -25496,7 +25496,7 @@ MonoBehaviour: m_TargetGraphic: {fileID: 1882365343} m_HandleRect: {fileID: 1882365342} m_Direction: 2 - m_Value: 0.9999985 + m_Value: 1 m_Size: 0.92577153 m_NumberOfSteps: 0 m_OnValueChanged: @@ -32663,7 +32663,7 @@ MonoBehaviour: SelectCharacterPannel: {fileID: 1389187103} LiveSelectList: {fileID: 605931265} LiveSelectImage: {fileID: 1781049853} - LiveSelectInfoText: {fileID: 0} + LiveSelectInfoText: {fileID: 116348346} SSWidth: {fileID: 1509789528} SSHeight: {fileID: 343750191} SSTransparent: {fileID: 1592069527} @@ -38653,9 +38653,9 @@ RectTransform: m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: -17} m_Pivot: {x: 0, y: 1} --- !u!114 &1834195528 MonoBehaviour: @@ -39136,7 +39136,7 @@ RectTransform: m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} diff --git a/Assets/Scripts/UmaViewerBuilder.cs b/Assets/Scripts/UmaViewerBuilder.cs index 568384b..7ce1267 100644 --- a/Assets/Scripts/UmaViewerBuilder.cs +++ b/Assets/Scripts/UmaViewerBuilder.cs @@ -156,11 +156,20 @@ public class UmaViewerBuilder : MonoBehaviour //Load Body RecursiveLoadAsset(asset); + bool physicsloaded = false, physicsloaded2 = false; //Load Physics foreach (var asset1 in UmaViewerMain.Instance.AbChara.Where(a => a.Name.StartsWith(UmaDatabaseController.BodyPath + $"bdy{costumeIdShort}/clothes"))) { - if (asset1.Name.Contains("cloth00") && asset1.Name.Contains("bust" + bust)) + if (asset1.Name.Contains("cloth00") && asset1.Name.Contains("bust" + bust)&&!physicsloaded) + { RecursiveLoadAsset(asset1); + physicsloaded = true; + } + else if (asset1.Name.Contains("cloth00") && !asset1.Name.Contains("bust")&&!physicsloaded2) + { + RecursiveLoadAsset(asset1); + physicsloaded2 = true; + } } } else