I read somewhere you can click on the properties in blueprints to add C++ code? How do you do this?

As an example, if I wanted to do the equivalent of this (from Unity):

How can I do this with Blueprints without putting up loads of boxes. I don't mind using blueprint boxes to get the random variables but I should just like to type in x+" + "+y+" = "+(x+y) purely in c++, is this possible?

Or in C++ this would be something like printf("%d + %d =%d",x,y,x+y). Very simple.

Also, for more complicated formula I don't want to hook up boxes. For example I should like to write: Mathf.sqrt(x*x+y*y+z*z) and other mathematical formulae without having to use boxes. Is this possible? i.e. to add small equations or scripts to blueprints?

As an example, if I wanted to do the equivalent of this (from Unity):

Code:

Start(){ int x=Random.Range(0,10); int y=Random.Range(0,10); Debug.Log( x+" + "+y+" = "+(x+y)); }

Or in C++ this would be something like printf("%d + %d =%d",x,y,x+y). Very simple.

Also, for more complicated formula I don't want to hook up boxes. For example I should like to write: Mathf.sqrt(x*x+y*y+z*z) and other mathematical formulae without having to use boxes. Is this possible? i.e. to add small equations or scripts to blueprints?

## Comment