Open
Description
Describe the solution you'd like
This is mostly related to visual stuff. It would be nice to have options to change how SerializableInterface is displayed using the Preference Window. This would make visual decisions easier, as it would give us the ability to customize them. Ex:
- The compact view added in this PR: Added RawReferenceDrawer.Styles.cs + DrawLine - #41 #42. While I like it, some might not, so it would be nice to have an option in Preference to enable or disable the compact mode.
- I tried a while ago to do something that would enable us to decide how we want to format the name. This allowed me to always see the interfaces. (While it was nice to see I had an instance of a
Dog
, it was also really helpful to see what interface I cared about in theDog
instance).
- Prefabs are added to the Assets locator. While this is a nice feature for Editor Scripting, it might not hold any value to some and would only make ScriptableObject harder to find. Adding a Preference to disable the Prefab finder would be a personal choice and wouldn't block users to simply drag and drop the prefab in the objectfield. (this is the default behaviour of Unity)
For now, the things I would see in the preference settings are:
- Customize name for:
- Custom Class
- Default Display
- Custom with variables: {Class} {interface}
- Scene Object
- Default Display
- Custom with variables: {GameObject} {Component} {interface}
- Assets
- Default Display
- Custom with variables: {Asset} {interface}
- Custom Class
- Enable / Disable Prefab discovery
- Enable / Disable Compact View
- Color of Line if enabled
- Reset / default button
Additional context
https://docs.unity3d.com/ScriptReference/ScriptableSingleton_1.html
https://docs.unity3d.com/ScriptReference/FilePathAttribute.html
https://docs.unity3d.com/ScriptReference/SettingsProvider.html