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

Serializing Mono.Cecil Injected Fields

$
0
0
I'm working on updating my asset to make it simpler to use by automatically injecting fields into MonoBehaviour objects using Mono.Cecil. Playing around to prove the concept I've managed to inject a basic primitive type field that does show up in the inspector, but I've noticed that any value assigned does not survive the serialization/deserialization process after Unity recompiles Assembly-CSharp.dll...

Serializing Mono.Cecil Injected Fields

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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