I have a blueprint taking a Static Mesh as an argument (public variable or component).
My blueprint replicates the mesh in the level several times.
However, I would like to control the distance between the meshes, so that it is adjusted to the dimensions of the mesh itself. If the user plugs in a bigger mesh, the instances should spread out further away so that they don’t overlap each other.
To accomplish that, I would like to inspect the Static Mesh within the blueprint, to learn its dimensions. How do I accomplish that?
I found a similar question here: How do I get the size of a static mesh? however, it is a C++ solution.
I tried using the function mentioned in the answer - GetActorBounds - in my blueprint, but it takes an Actor as an argument. Static Mesh is not an Actor and cannot be used in such context.