-
-
Notifications
You must be signed in to change notification settings - Fork 21
Improve usage with Arrays and Lists #55
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
Conversation
Only invoke Clicked for a Property if the Mouse is in the Property's Rect. In case that the Property was part of an Array all Array Elements were being pinged. This resulted in Unity ignoring all Pings except the last, so it was basically useless.
Thanks for the PR! I’ll have a look at it soon :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some formatting requests :)
Co-authored-by: Christiaan Bloemendaal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, missed this one
Co-authored-by: Christiaan Bloemendaal <[email protected]>
🎉 This PR is included in version 2.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Proposed changes
Make the SerializableInterface work better as an Array or List. Added Extensions Methods to convert an Array/List of Interfaces to a Array/List of SerializableInterface.
Fixed and issue that prevented to set different Values to a Array/List in the Unity Inspector.
Types of changes
Put an
x
in the boxes that apply.Issue
None
What is the current behavior?
When having an Array/List of SerializableInterface in the Unity Editor and setting on Element with the Dropdown, all Elements were set to the Selection of the Dropdown.
There was no way to convert a Array/List of Interface to a Array/List of SerializableInterface which would be usefull when populating a SerializableInterface Array/List from an Editor Tool.
What is the new behavior?
When having an Array/List of SerializableInterface in the Unity Editor and setting on Element with the Dropdown, only the selected Element is set to the Selection of the Dropdown
There is a Constructor to create a SerializableInterface from an Interface and also extensions to create Array/Lists
Checklist
Put an
x
in the boxes that apply.Further comments
I'm happy to discuss my changes