Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
193 stars 9 forks source link

New LogiX Node: GetValue<T> #3900

Open JackTheFoxOtter opened 1 year ago

JackTheFoxOtter commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently, there isn't really a good way to retrieve the value of a data type implementing IValue\<T> (for example IField\<T>).

Relevant issues

N/A

Describe the solution you'd like

A new generic node GetValue\<T>, which retrieves the value for any IValue\<T> input type.

Describe alternatives you've considered

Using ToString() and parsing... But I think I don't have to tell you why this is anything but optimal.

Additional context

No response

JackTheFoxOtter commented 1 year ago

Additional alternative I've now considered

Temporarily connecting a Relay\<T> to the IField\<T> by writing its RefID into the relay's input. Less cursed than using ToString and parsing... Although perhaps still not the most elegant of a solution. Thanks to @mpmxyz for this approach though, works as a workaround for now.

2023-05-27 20 47 33