public Dictionary<int, string> IntStringMap; } That's it! You can read more about using the Odin Serializer here: Implementing The Odin Serializer. Serializing Dictionaries With Unity Unity does not support Di
// Inherit from SerializedScriptableObject to use Odin Serializer// It's that simple!publicclassMyScriptableObject:SerializedScriptableObject{publicDictionary<int,string>MyDictionary;} Learn more here Easy to understand The serialization debugger shows you what's going on, and why. ...
Second, new MyCustomType() }, }; [DictionaryDrawerSettings(DisplayMode = DictionaryDisplayOptions.Foldout)] [ShowInInspector] public Dictionary<string, string> StringStringDictionary = new Dictionary<string, string>() { { "One", ExampleHelper.GetString() }, { "Two", ExampleHelper.GetString(...
using OdinSerializer; public class YourSpeciallySerializedScriptableObject : SerializedScriptableObject { public Dictionary<string, string> iAmSerializedByOdin; public List<string> iAmSerializedByUnity; } The manual method requires that you implement Unity’s ISerializationCallbackReceiver interface on the Un...
今天把玩了一款最近的热门插件——“Odin - Inspector and Serializer”,其功能强大到让人无语,简直是开发利器,屠龙宝刀! 它的功能是扩展Inspector显示,它重写和增加了很多PropertyAttribute,能够在不重写Editor类的情况下显示各种变量到Inspector里。 下面随便介绍几个非常好用的功能: ...
Odin包含许多功能,例如Static Inspector,Project Validation,Odin Editor Windows和我们的开源Odin Serializer,它允许您在需要多态对象结构时扩展Unity的序列化功能,或者希望在运行时序列化和反序列化数据。 视频来自转载 知乎视频153 播放 · 0 赞同视频
今天把玩了一款最近的热门插件——“Odin - Inspector and Serializer”,其功能强大到让人无语,简直是开发利器,屠龙宝刀!它的功能是扩展Inspector显示,它重写和增加了很多PropertyAttribute,能够在不重写Editor类的情况下显示各种变量到Inspector里. 下面随便介绍几个非常好用的功能: * 重做了List的支持:增加了边框,增加...
由于这个插件价格还是比较贵的(Odin - Inspector and Serializer 商店页 现价$45),所以拿来分享一下,如果觉得插件做的不错还是希望能在商店购买以支持开发者! 如果涉及侵权问题马上删除~ Odin插件能解决的问题: 1.Unity的自定义编辑器 2.序列化某些类型 比如:Dictionary 3.非常美观的Inspector界面 序列化类型: Type...
由于这个插件价格还是比较贵的(Odin - Inspector and Serializer 商店页 现价$45),所以拿来分享一下,如果觉得插件做的不错还是希望能在商店购买以支持开发者! 如果涉及侵权问题马上删除~ Odin插件能解决的问题: 1.Unity的自定义编辑器 2.序列化某些类型 比如:Dictionary 3.非常美观的Inspector界面 序列化类型: ...
今天把玩了⼀款最近的热门插件——“Odin - Inspector and Serializer”,其功能强⼤到让⼈⽆语,简直是开发利器,屠龙宝⼑!它的功能是扩展Inspector显⽰,它重写和增加了很多PropertyAttribute,能够在不重写Editor类的情况下显⽰各种变量到Inspector⾥。下⾯随便介绍⼏个⾮常好⽤的功能:* 重做了...