It may be a noobie question. I have a fucntion named FOVPara with 3 return values and the fucntion is public. I need to call the function inside another function ‘Triangle Test’ and when I try to call it, where do I need to connect the exec pin of my FOVPara function. I just need the return values and usually i don’t provide any exec connections. What can i connect to the exec pin ?
where do I need to connect the exec pin of my FOVPara function.
Normally to the rest of the execution chain but you can turn it into a pure one that does not need an exec pin:
Conditions apply
Thanks…May be i have to ask whether any method other than print string avaiable to check the value of a variable in real time ?
- draw debug:
If you feed it Base Actor, it turns Text Location into a local vector.
- watch values
- create your own debugging widget and poll actor data
Thanks for the comment…In my case i want to know the return value of a function which is an array. I tried the methods above and i guess it works for only vectors and not for array…atleast the draw debug string
It is an array of vectors…
Hey @ronyshaji1!
If the issue is that the array is an array of vectors, Unreal has a built in node that will make your vectors work for @Everynone’s method:
I hope the above helps point you in the right direction!
Yes i tried both in the event graph, but unfortunately it is not displaying while playing. So may be calling the function in event graph is an issue ?
You need to execute the function. Connect it to Event Tick if you want this updated every frame.
Assuming the node on the left is Tick
. You will also need a location for the text. Otherwise, it will all draw in the same 0,0,0. With Tick duration should be 0.
If you want this to show once - you still need a method of execution. A keyboard key perhaps, then the duraction can be in seconds.
Yes it is displaying with draw debig string but i think the numbers are large and literally can’t able to see what’s in the screen
As I mentioned above, you are drawing all strings in the same place. Where would you like each string to be?
I don’t really need to display the string…i need to know the value so that i need to adjust it accordingly like getting a log of the value also works for me…
If you use “PrintString” instead, and untick “Print to screen”, it will only show up in the output log (at an incredible speed if ran on tick)
Thanks @Everynone and @Squize @Quetzalcodename Now I got it in the output log…Thanks for the help