Siccity / SerializableCallback

UnityEvent and System.Func had a child
MIT License
359 stars 53 forks source link

Add void return type support #2

Closed Siccity closed 6 years ago

Siccity commented 6 years ago

Func can be created from a void method through expression trees, but invoking the Func will throw an error. A possible solution is to check if the return type is null when creating the Func, and if it is, set return value to a constant 'null', but i don't know how to achieve this.

Siccity commented 6 years ago

Added. See: f0496e286e2fae3f60c12bddc0be0c950d08ab6d