Help! D: How to fix it. "Attempted to get an item from array...out of bounds [0/0]!"

Hey all,

I would like to know how to fix this. Is relevant try to fix this or i can ignore it?

Best not to ignore it.

You’re trying to see if the widget exists, right? The problem is you’re trying to “get” an index that isn’t there. The correct way to determine if the widget exists is to get the length of the “Found Widgets”, and if it’s greater than 0, it exists.

That’ll clear up the error and function as you want :slight_smile:

it works!, but in false condition i get hidden widget, why? and if i put visible does not nothing. D:

i tried this and it works haha. But actually i dont know what im doing xD could you explain me more plz? :c

70131-003.jpg

Well, I’m not really sure what you’re trying to do there, so I can’t really say why it does/doesn’t work…

Good thing you got it working though :slight_smile:

I have a camera that has a specific widget, but when loading the old widgets disappear.