# How can I use a BP actor to play a widget animation in Level

**URL:** <https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, question, UE4-27\
**Created:** [March 6, 2022, 9:51am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421 "2022-03-06T09:51:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 6, 2022, 9:51am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/1 "2022-03-06T09:51:33Z")

</div>

How can I use a BP actor to play a widget animation in Level

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 6, 2022, 9:57am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/2 "2022-03-06T09:57:15Z")

</div>

It really depends on the circumstances. What is the trigger? Do we click something, run into something, time expires, something else?

* * *

You could use an event dispatcher:

> [@Call blueprint functions in the root world level](https://forums.unrealengine.com/t/call-blueprint-functions-in-the-root-world-level/503842/2):
>
> Working with the LB is somewhat awkward in certain scenarios. You have some options, none of them is exactly pretty in BPs. Dispatch from the Player if the player is in the level already, have it call a dispatcher: The LB can catch that call and fire a custom event or a function in response. The Dummy Another option is to place a tagged dummy actor in the level to handle the calls: This actor would hold the streaming logic instead of the LB handling it. A side benefit i…

But a much better question is: why would you ever want to do that? Why use widgets in the LB? You may have a great reason - simply asking as nothing comes to mind that could justify it.

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 6, 2022, 12:21pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/3 "2022-03-06T12:21:51Z")

</div>

No I am using Level BP I just want to call it after you run over an Actor BP

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 6, 2022, 1:59pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/4 "2022-03-06T13:59:53Z")

</div>

> [@arnavkale](#):
>
> after you run over an Actor BP

Is the actor BP in the level already? If so, select the actor and:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/5/8d5cec1e80e29405342b09550b7c7b0013bb6df9.png)

You have direct access to all persistent actors’ events.

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 7, 2022, 6:12am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/5 "2022-03-07T06:12:01Z")

</div>

I actually have a code with this, I want to access and call widget animations in ActorBP

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 7, 2022, 6:51am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/6 "2022-03-07T06:51:42Z")

</div>

Could you be more specific? This is all so vague. Could you describe the scenario?

Who calls whom, under what conditions? Where are the actors? Were they spawned dynamically? Who is supposed to open and own the widget?

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 8, 2022, 3:55pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/7 "2022-03-08T15:55:58Z")

</div>

Yeah I am actually a beginner so it is hard for me

1. There is a widget already created in the level and is displayed on the screen, and this widget contains an animation

2.There is an actor in the world, and has a script in it

Now, I want to call the Widget animation and play the animation whenever my character overlaps with the actor through the actor BP because all the script is present in the actor BP

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 8, 2022, 4:06pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/8 "2022-03-08T16:06:51Z")

</div>

Nice & clear! Thanks.

* * *

- in the widget:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/6/b868866d3669b55f6112dcebee918b3dc6bbeaea.png)

- in the LB:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/4/d04dbe619f7d92de776a6451f332695c49c1ba3f.png)

* * *

In case that one bit is unclear:

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 8, 2022, 4:18pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/9 "2022-03-08T16:18:21Z")

</div>

I have multiple actors like this in the level, do I have to do it for all of them?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 8, 2022, 4:23pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/10 "2022-03-08T16:23:16Z")

</div>

- all instances of the specified class:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/c/98c5a9ad5670822ec1134cbc52508246cb1fcaf2.png)

- for only select few you could:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/3/c43c89703a915c1a932842354956c9c59e0ec858.png).

* * *

There are some other ways to select a bunch of specific actors, too.

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 8, 2022, 4:30pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/11 "2022-03-08T16:30:18Z")

</div>

Yeah I did them this way is it okay?

 ![Screenshot (154)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/8/888e3595e143490b94178be365dc600c679fac63.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 8, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/12 "2022-03-08T16:31:27Z")

</div>

I’d use the stuff I posted above, but hey - if it works, it works. Does it?

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 8, 2022, 4:33pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/13 "2022-03-08T16:33:32Z")

</div>

Yes it does, but I’ll anyways try everything that’ll workout with it, btw thanks for that you just saved my game

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 8, 2022, 4:38pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/14 "2022-03-08T16:38:02Z")

</div>

> [@arnavkale](#):
>
> I’ll anyways try everything that’ll workout with it

Sounds quite reasonable, indeed. Also, if you do not want to drag the red wire everywhere:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/9/2398895ea5775721520843239ec8b1c0af756c4d.png)

The delegate can also call a function instead. And the bind can be inside a function. Helps with clarity.

Good luck with rest!

---

<div class="post-metadata">

**Author:** ![arnavkale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arnavkale](https://forums.unrealengine.com/u/arnavkale)\
**Post date:** [March 9, 2022, 4:49pm UTC](https://forums.unrealengine.com/t/how-can-i-use-a-bp-actor-to-play-a-widget-animation-in-level/504421/15 "2022-03-09T16:49:43Z")

</div>

I’ll understand and try this too!!
