it should be a very simple task, but I am not able to :(((
I made a Character Blueprint. I added a variable of type actor->reference and made it public via “editable”. I compiled and added a simple cube from the scene to it.
I made this character blueprint my standart pawn Class in the project settings.
Now I did it like in the picture:
So, when I play the level in “selected viewport” mode and press “P” I always got position 0,0,0 .
When I stop playback I got an error message too, that means translated, “it cant read the reference”.
Thats why it is 0,0,0. When I then connect the “print string” with the “event tick”, it prints me out again the 0,0,0 position, but next it prints me the right value of the reference.
Super interesting is, that when I now play the scene in “simulate” modus, it always prints me the right position of the reference, without toggling with 0,0,0 .
What do I do wrong?