ProwlEngine / Prowl

An Open Source C# 3D Game Engine under MIT license, inspired by Unity and featuring a complete editor and built on Silk.NET
MIT License
328 stars 27 forks source link

[Editor] Missing Monobehaviours #94

Closed michaelsakharov closed 4 months ago

michaelsakharov commented 7 months ago

in the Serialize and Deserialize methods on a gameobject we can check if a components type exists, if not Rather than just failing to deserialize that type, we can add a MissingMonobehaviour component instead, and that can store the Tag of the missing component, then we can recover the data if the component resurfaces probably during deserialization of the MissingMonobehaviour

michaelsakharov commented 4 months ago

Their not perfect, some References get lost, but most the settings can be recovered, and asset references also get recovered! :D