I made actor blueprint for overlap event.
I want to set trigger volume from world outliner, like this
and set overlap event in my actor blueprint
But it’s nothing happen…
Is overlap event work only in level blueprint?
I made actor blueprint for overlap event.
I want to set trigger volume from world outliner, like this
and set overlap event in my actor blueprint
Overlap events definitely work in any blueprint. There could be a few unseen issues here.
GenerateOverlapEvents
set to true (should be by default)Pawn
or whatever your player character’s object type is.IsMyPlayer
function. (you could check this by simply running a PrintString
off False from that Branch
)I delete branch and connect directly to print string.
My trigger variables is soft reference. Is it problem?
That probably is the problem, yes.
You may as well change them to straight object references as they will already be loaded into memory if the volume is placed in your level and I can’t imagine you’ll see any benefit by using a soft reference.
Otherwise, if for some reason you are set on using the soft reference, before you can trigger that event, you will need to Resolve
that soft reference by using the Resolve Soft Reference
node if it’s already loaded into memory or Casting
to the volume.
I found the reason.
I made structure for change lighting including trigger volume.
And set trigger volume like this.
But I don’t know why I can’t set volume with structure. I want to collact all variables same categorys.