I need to get the location of a blueprint component and transfer to another blueprint. What I am trying to do is that get the location using GetWorldLocation and promote to a variable. Then I made the variable as editable/public and access it in another blueprint using the object of this blueprint.
But now when accessing the location, always the vector shows as zero. Is there any way to check what value is storing in the variable. The dafault value always show as zero.
Hi Rony,
I think you’re on the right track since you mentioned ‘using the object of this blueprint’
Check that your blueprint variable reference is set/pointing to the correct BP in the world that has vector ‘NewVar2’
As for a way to check what value the variable is storing, easiest way is to use a ‘print string’ node connected to ‘tick’
Cheers
Thanks for the reply. As per your comments i checked the value of the variable using print string function and it works in its own blueprint. But when accessing the blueprint variable in another blueprint using the object of the original blueprint, i am again getting zero. Can you please explain what you mean by ‘Check that your blueprint variable reference is set/pointing to the correct BP in the world that has vector ‘NewVar2’ ?
1 Like
This image assumes that there is only one instance of ‘BP_MyBP’ in the level. (You could set these references manually by making the variable editable with the eye icon)
Now you should be able to get info from/call functions on that specific instance of the BP.
1 Like
Yes i now tackled the problem. Actually i was not selected the blueprint object default value in the levela nd after selecting, i was able to access the data from another blueprint.
1 Like