# What is the lifecycle of the controller, character and HUD?

**URL:** <https://forums.unrealengine.com/t/what-is-the-lifecycle-of-the-controller-character-and-hud/383735>\
**Category:** UI\
**Tags:** hud-blueprint, actorcomponent, unreal-engine, Widget, question\
**Created:** [February 2, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/what-is-the-lifecycle-of-the-controller-character-and-hud/383735 "2017-02-02T15:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acxsasx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@acxsasx](https://forums.unrealengine.com/u/acxsasx)\
**Post date:** [February 2, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/what-is-the-lifecycle-of-the-controller-character-and-hud/383735/1 "2017-02-02T15:28:13Z")

</div>

I found this for the actor:  
[Actor Lifecycle](https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Actors/ActorLifecycle/index.html)

Is there some similar document for the lifecycle that include the creating the HUD and the Actor Components on the ACharacter?

The reason I am asking:

I have Widgets referring to an ActorComponent on my Character in the BeginPlay of the HUD blueprint which assigns a reference of the ActorComponent to the Widget.

The ActorComponent shows out of scope when it runs in the BeginPlay.

When I call the same nodes via an BlueprintImplementableEvent, I get a reference to the ActorComponent, it all works fine. Also the ActorComponent is replicated.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [February 2, 2017, 4:39pm UTC](https://forums.unrealengine.com/t/what-is-the-lifecycle-of-the-controller-character-and-hud/383735/2 "2017-02-02T16:39:06Z")

</div>

BeginPlay is executed right after all components of that actor are initiated, so order depends on order of loading objects which is quite random and you code should be prepared that somethign night not avable, or else you explicitly will make something right after another. I don’t know you setup, but either check out actor on every frame or use binding, i didn’t use UMG much but in Slate this should be easy.

---

<div class="post-metadata">

**Author:** ![acxsasx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@acxsasx](https://forums.unrealengine.com/u/acxsasx)\
**Post date:** [February 3, 2017, 5:12am UTC](https://forums.unrealengine.com/t/what-is-the-lifecycle-of-the-controller-character-and-hud/383735/3 "2017-02-03T05:12:48Z")

</div>

Thanks, I am not surprised.
