I am trying to create an array of clickable boxes that will be a base for let’s call it chessboard. I’ve managed to create an array of objects like shown in pic
and the blueprint itself
. What i did later was to create a function that would print the name of the component of “board” blueprint that was hit by left mouse button. I’ve reached this
, which does not satissfy me as i need to use the name or the index of component later to be able to f.example change material of one particular component. So my question is what can i do to be able to assign a value as a property of each box to know which of them is number 1 and which is 400 and so on and so on, and it would be lovely if the number would correspond to the sequence the boxes were created.
PS the yellowish color was assigned during creation of static mesh for all boxes created under loop index from 161-220, and i would love to save this index in some kind of an array or any other kind of variables/tags etc. to be able to use it later. (I still mean the way that i the index is assigned to component, so if i say component with index 180 changes its material to blue for exmaple.)
PS’ Plz help