7ark / BetterEvents-Deprecated

A replacement for UnityEvents that are: better
MIT License
135 stars 13 forks source link

ParameterValues cannot be assigned from script #6

Open Dioinecail opened 4 years ago

Dioinecail commented 4 years ago

If you create a new BetterEventEntry from a script and assign ParameterValues array it doesn't change in the inspector, it will stay at default value.

for example

BetterEventEntry entry = new BetterEventEntry(cloneDelegate);
entry.ParameterValues = new object[] { 1 };

it will stay at 0, because the default value is 0 for this type of method.

I've tried creating new constructor or force calling Odin serialization, it still doesn't change in the inspector

Dioinecail commented 4 years ago

Hmm, it updates the inspector values after calling "Invoke" from the inspector