Box Container Pointing at Get Array Value @ Index # Updates?
-
If a Box Container's storage is the output of a Get Array Value at Index Behaviour, and somewhere else, on an object somewhere else, the value stored at that index in that array is changed, does the Box Container update itself with this new value?
-
In programming terms, the box container will point at the get array value. The get array needs to be triggered again to update the box container.
-
@Hamed Got it. Thank you!
So the Get Array Value at Index Behaviour is creating a locally stored variable/pointer of whatever its lookup (get) from the array returns, for the use of local Box Containers, Value Behaviours and any other localised behaviours wanting to use it. I think.
For anyone coming along in the future, this seems to be what's happening, in pseudo code (please correct me if I'm wrong, @Hamed), wherein
*indicates a pointer.*myLookUplocalStorage = myArray[atIndex] myBoxContainer = *myLookUPlocalStorage myArray[atIndex] += 1 // myArray[atIndex] is now 1 bigger , but neither localStorage nor myBoxContainer know anything about this updatemyBoxContainer stores a pointer to the localised lookup (get), so whatever changes at that address is instantly reflected in myBoxContainer
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login