BetterEvents-Deprecated icon indicating copy to clipboard operation
BetterEvents-Deprecated copied to clipboard

ParameterValues cannot be assigned from script

Open Dioinecail opened this issue 5 years ago • 1 comments

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 avatar Mar 25 '20 12:03 Dioinecail

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

Dioinecail avatar Mar 25 '20 12:03 Dioinecail