TextusGames / UnitySerializedReferenceUI

The UI for Unity's SerealizedReference attribute. It allows to change the instance type of field right in editor.
MIT License
144 stars 22 forks source link

UPM Compatibility #5

Closed shniqq closed 3 years ago

shniqq commented 3 years ago

Hey @TextusGames , I am currently creating a plugin to be installed via the Unity Package Manager, and I came across your awesome tool to allow for easy creation of instances when using the [SerializedReference] attribute. Currently your tool does not allow to be added as a dependency via the Unity Package manager yet, since it does not have a package.json, so I quickly moved all the necessary runtime code the Unity's suggested layout and added the package.json.

Any chance you want this merged back? :) If yes, I'd also like to add it to OpenUPM, this would make it easy to have it as a dependency. Let me know if you have any feedback!

FYI: For now I removed the examples you had since Unity, as far as I know, does not support shipping optional examples via UPM yet - if you want to still have it included, let me know, I'm sure we can find a way (keep in mind, once it's installed as a package, users can't easily delete optional code anymore). For reference: https://docs.unity3d.com/Manual/cus-layout.html

Greetings!

TextusGames commented 3 years ago

Sorry. Too much changes. Do not have time to review them. Maybe one day I encounter UPM and make it compatible.