How to make a number increment as a variable?

Here’s my goal: The user can click in the game to spawn a number “1” where their cross-hair is pointing. The second time the user points and clicks at something, the number “2” spawns where their cross-hair is pointing - and so on. Furthermore, if the user clicks on a number, I want that number to change color to a pre-defined color (green to red.)

And here’s what I have right now:

This traces the line from the user and spawns the actor (NoteVariable_1) on the designated point. This works properly.

This makes the spawned actors face the camera regardless of original orientation. This also works properly.

This is my setup for the NoteVariable_1 actor blueprint class. I don’t know how to take the number (NoteVariable) and create a variable from it that I can use in a blueprint.

Thank you for any help!

From what I know, you can not procedurally create a variable and/or alter it’s type in any form. However, I think what you should look into is creating an Actor Component (select to create Blueprint Class and in the list is the option ‘Actor Component’.) Here is the documentation to it: http://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Actors/Components/index.html?utm_source=editor&utm_medium=docs&utm_campaign=doc_anchors

While the documentation uses C++ for it’s examples, the information the page provides on what an Actor Component is and why/when you should use them, can be helpful and is relevant. Any further questions you may have about an Actor Component can be easily googled to find some other examples.