How to get sprite size?

I want to spawn a sprite above other sprite, but the only thing i can get is the actor location, and the actor bounds, using those funtions i´ll get this:

(Ignore the player character cause its supose to be like that) I want the mirror (espelho) sprite to be above the terrain (terreno) sprite. Is there anyway to get the sprite width/height, or ill have to play with the offset till i get it right?

I would also like to know the answer to this question. Did you ever figure it out?

I assume that it’s a bit too late, but may be someone will find this useful.


First things first we need to find the sprite reference we’re going spawn our character at. It depends on the particular game.

In my case I used ‘Get Movement Base Actor’ node. What it does basically is answering the question ‘what your pawn is standing at?’. As a result we can get the sprite reference our character standing at the moment.

Secondly, we need to find the bounding box of our sprite. To do that I used ‘Get Actor Bounds’ node. By using simple math we can find the most top point of our sprite. For e.g. we can subtract the Origin vector(in our case only Z component) from Box Extent vector(also only Z component).

I did the math for X axis, but it’s pretty much the same thing.

http://savepic.org/8361898.jpg

Good luck!