I get the scroll bars appearing as expected, however when I try clicking on one to drag it I get the error:
The code it’s referring to is:
I’m using Unity 2020.3.48f.
I get the scroll bars appearing as expected, however when I try clicking on one to drag it I get the error:
The code it’s referring to is:
I’m using Unity 2020.3.48f.
I suspect draggingNode
is null
Yes, it is. As it should be when I mouse down on the scroll bar.
However, I found my error now: line 106 in the block screenshotted above should read:
if(draggingNode != null)
but I missed that I’d accepted the wrong autocomplete, and had it as:
if(draggingOffset != null)
I found it by comparing the code block against the commit.
Yes, I hoped that me telling you that it’s null (even when you thought you checked it) would lead you to either see the mistake (as you did) or tell me I’m wrong, at which point I would’ve given you the answer.
Dude, you should delete this comment. It’s condescending and rude. And it doesn’t ring true.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.