-
Notifications
You must be signed in to change notification settings - Fork 120
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
[FEATURE] More public get-properties for fields #428
Comments
Just encountering this same problem - with Input System Interpreters. Have had to edit the package directly to add some public properties to "CallbackContextInterpreter.cs" so I can set the input phase events programmatically. |
"check instancers and listeners for hidden private fields" - a setter for Base for Instancers at runtime to swap out prefab generated. I've added a setter so I can initialise the template prefab values at setup. FYI Use Case: rather than having the data inside project SO's, I've setup an import from BakingSheets (ie Google Sheets) that generates the Atom SO's and wires them up on import - so can adjust and inspect data/events and observables are created at runtime but a bunch of Atom SO's are auto generated from spreadsheet. Instancers represent the DB Row prefab values... ie a table of monster archetypes for example, where each row then gets translated to a Prefab with Instancers for the monster properties. Instances of the prefab then have values based on the initial spreadsheet values. So the Base should represent the value imported from the spreadsheet and is set in code, not via Inspector. |
Is your feature request related to a problem? Please describe.
Currently it's sometimes hard to write own tools or editor scripts (or even own components) that work with atoms, because a lot of fields are private only and have no public getter property.
Describe alternatives you've considered
Reflection is currently the only alternative
Additional context
Event References
bool IsUnassigned
property that returns whether or not the _variable/_event/... is assigned.AtomReference
TODO check instancers and listeners for hidden private fields, that might come in handy for users.
mark those getters/method with the UnstableApiAttribute.
The text was updated successfully, but these errors were encountered: