How to get a value before spawn?

I have two actors: A and B. And I want B to spawn A next to its right side (side by side).

So I think the positionX of A to be spawned is: B.width*0.5+A.width*0.5.

But when I previewed it, I got the result is same as: B.width*0.5. There were no additive of 1/2A.width.

Then I found I can not get the real width of A before I spawn it on the scene.

How could I deal with this problem? Who can help?
Sign In or Register to comment.