Skip to content
Snippets Groups Projects
Commit dca283f0 authored by MaZiFAU's avatar MaZiFAU
Browse files

Minor Bugfix when restarting Stage

parent bd46764e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment