|
Post by robert on Feb 11, 2021 11:19:47 GMT
Hello,
I've been using Enhanced Scroller for a while now and it works great so far. I recently do face a problem, though:
I have a list of data that contains a boolean value. This boolean value is shown on a prefab. I use a Unity-Built-In Toggle for this. This seems to cause a problem with 'enhanced scroller'. Everything works fine as long all booleans have the same value. But once i change the values of a couple of entries and try to scroll through the list the editor hangs up. It looks like a stack-overflow error.
I also use a TextInput, which causes the same error.
Once i deactivate both, Toggle and TextInput, the scroller works fine.
Is there a solution for this ?
br, Robert
|
|
|
Post by robert on Feb 11, 2021 16:04:43 GMT
Hi again, i found a workaround for my problem. The problems seem to be the events of the Toggle (OnValueChange) that keep on firing when the scroller loads. Fortunately, there is a method called 'SetIsOnWithoutNotify()'. This avoids the error and works for me. Anyway,thanks
|
|
|
Post by echo17 on Feb 12, 2021 14:30:38 GMT
Thanks for following up, glad you found a solution.
|
|