Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Custom serialization for an inventory that contains runtime item definitions

$
0
0
Hey,

I'm wrestling with how to design an inventory that can serialize some objects by name (or GUID or UUID or whatever), but other objects with comprehensive serialization (i.e., all internal fields are serialized too). This is because I don't want to comprehensively serialize references to objects that never change during runtime. Some objects do change during runtime (e.g., a weapon with a deteriorated condition), and thus merely serializing a reference to them is unsatisfactory....

Custom serialization for an inventory that contains runtime item definitions

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>