# Timing policy access from c++ UMG \_ UWidgetComponent

**URL:** <https://forums.unrealengine.com/t/timing-policy-access-from-c-umg-_-uwidgetcomponent/449757>\
**Category:** UI\
**Tags:** unreal-engine, component, Widget, question, UMG\
**Created:** [May 28, 2019, 11:28pm UTC](https://forums.unrealengine.com/t/timing-policy-access-from-c-umg-_-uwidgetcomponent/449757 "2019-05-28T23:28:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ce902b4a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ce902b4a1](https://forums.unrealengine.com/u/anonymous_user_ce902b4a1)\
**Post date:** [May 28, 2019, 11:28pm UTC](https://forums.unrealengine.com/t/timing-policy-access-from-c-umg-_-uwidgetcomponent/449757/1 "2019-05-28T23:28:55Z")

</div>

> **[UWidgetComponent](https://docs.unrealengine.com/5.1/en-US/API/Runtime/UMG/Components/UWidgetComponent/)**
>
> The widget component provides a surface in the 3D environment on which to render widgets normally rendered to the screen.

In above page you can see that “TimingPolicy” variable is protected so you can not access that from c++ code, so i assume there is a function to assign value to timing policy variable but i keep search and can not find that.

by the way you can assign value to “Timing Policy” from BP, but i wanna do it from c++ , cause that will be default value for all actors inherit from this actor.

if one have any idea for that, i will be happy to hear the answer.

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [November 15, 2022, 4:47am UTC](https://forums.unrealengine.com/t/timing-policy-access-from-c-umg-_-uwidgetcomponent/449757/2 "2022-11-15T04:47:38Z")

</div>

> [@anonymous\_user\_ce902b4a1](#):
>
> “TimingPolicy” variable is protected

We can access protected variable in derived class.

> [@anonymous\_user\_ce902b4a1](#):
>
> if one have any idea for that, i will be happy to hear the answer.

I’m looking for an answer too. I’m having this error if I try to access it: `error C2065: 'TimingPolicty': undeclared identifier`.
