-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Use Interfaces as a [Property]
.
#65
Comments
We should make it work, but should we assume that all interfaces are going to be components? I guess we need an attribute to describe the type |
I can imagine using something like this for resource files as well, so a more generic solution is probably the way to go. |
I don't know how it could be a generic solution though. It needs to restore that property somehow when the scene is loaded, so it needs to know where to look to find the class, it can't just be any type of class. |
Maybe an interface on the classes it's intended to support? I think at least Possibly prefabs as well but then it starts getting a little messy. |
kinda unrelated but being able to create your own [Property] widgets could potentially be useful? I can't think of any situations where a custom UX for a certain data type would be useful but I'm not that far in my dev journey yet. Anyone have some ideas? |
I want to set up some code to work like this:
And then be able to assign any component that has the correct interface.
However, the entry bar is greyed out and doesn't work atm.
The text was updated successfully, but these errors were encountered: