diff --git a/Assets/Resources/Prefabs/UI/Facts/Factscreen.prefab b/Assets/Resources/Prefabs/UI/Facts/Factscreen.prefab index 7b119fb2a243aa912d870559f3e1c0e9d306b3db..8addc4b7fc81f8adcdffff90ba33456f23d06819 100644 --- a/Assets/Resources/Prefabs/UI/Facts/Factscreen.prefab +++ b/Assets/Resources/Prefabs/UI/Facts/Factscreen.prefab @@ -507,7 +507,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: -180} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 1} --- !u!114 &8823539307371861913 diff --git a/Assets/Scripts/InventoryStuff/DisplayFacts.cs b/Assets/Scripts/InventoryStuff/DisplayFacts.cs index 9070aa63da97dc6eafa50d2a5c072b51663d80ca..203aa055b192b64fcc83842d443179defe54e9ff 100644 --- a/Assets/Scripts/InventoryStuff/DisplayFacts.cs +++ b/Assets/Scripts/InventoryStuff/DisplayFacts.cs @@ -69,11 +69,16 @@ public void OnAfterDeserialize() { _PrefabDictionary = new(); for (int i = 0; i != Math.Min(PrefabtTypeReadonly.Count, PrefabDataConfig.Count); i++) - // if (PrefabDataConfig[i] != null) + { + //// No Idea how to reproduce + //if (TypeExtensions<Fact>.UAssemblyInheritenceTypes.FirstOrDefault(type => type.ToString() == PrefabtTypeReadonly[i]) == null) + // continue; + _PrefabDictionary.TryAdd( TypeExtensions<Fact>.UAssemblyInheritenceTypes.FirstOrDefault(type => type.ToString() == PrefabtTypeReadonly[i]), PrefabDataConfig[i] ); + } } #endregion ISerializationCallbackReceiver @@ -81,6 +86,7 @@ public void OnAfterDeserialize() void Awake() { Instance = this; //first come, first serve + displayedFacts = new(); // reset static properties } private void OnEnable()