cg小白兔 发表于 2023-4-19 13:51:06

【更新】IUnified 1.3.14




Use C# interfaces within Unity!
With this package you can create interface fields for your MonoBehaviour or ScriptableObject scripts and be able to set them to any serialized object that implements your interface from within the editor - just drag and drop like any regular Unity object or select your implementation from a list!

It is fully serialized and integrated into Unity and includes it's own property drawer and selection window that shows all objects and components that implement the interface.

No need for you to create custom editors or property drawers, it all happens automatically!



在Unity中使用C#接口!
有了这个包,你可以为你的MonoBehaviour或ScriptableObject脚本创建接口字段,并能够在编辑器中把它们设置到任何实现你的接口的序列化对象上--就像任何普通的Unity对象一样拖放,或者从列表中选择你的实现

它被完全序列化并集成到Unity中,包括它自己的属性抽屉和选择窗口,显示所有实现该接口的对象和组件。

你不需要创建自定义的编辑器或属性抽屉,这一切都会自动发生!



页: [1]
查看完整版本: 【更新】IUnified 1.3.14