You have an inventory system that uses an Array to store references to collected item actors. To display the most recently collected item, you need to retrieve the last element from this Array. Which combination of nodes is the most direct way to achieve this?
-
A
Use the 'Last Index' node to get the index of the final element, and feed that index into a 'Get' node.
-
B
Use a 'ForEachLoop', and on the 'Completed' pin, use the value from the 'Array Element' pin.
-
C
Use the 'Length' node and subtract 1 to find the final index, then use a 'Get' node.
-
D
Use the 'Find' node with a wildcard to locate the last item in the sequence.