I like using Object Value as it means that I constantly store a reference, so I could change the location and it would dynamically change, but when I look at over people’s code, they never seem to use it. Is there any performance impacts (though I would not know why as you doing the same thing). Obviously, there are times to use indexing over Object Value, but for the times when either one is usable, which one should I be using?
I see no issue with storing an object inside of an ObjectValue, and I’m not sure of any scenario where doing so would effect performance.
For my game, which is very object-intensive, storing a table of the items I would need to index would use significantly more memory then just storing the targeted object with an ObjectValue.
I believe it is a preference thing, some people just prefer to have all of their objects stored in tables which they can index and others like having specificle variables/external values to identify them instead, though I could be wrong - there could be unforeseen performance drawbacks that I am unaware of.