# Error while trying to hide a text render

**URL:** <https://forums.unrealengine.com/t/error-while-trying-to-hide-a-text-render/487748>\
**Category:** UI\
**Tags:** error, text, unreal-engine, error-2, question\
**Created:** [August 20, 2021, 5:39pm UTC](https://forums.unrealengine.com/t/error-while-trying-to-hide-a-text-render/487748 "2021-08-20T17:39:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monsieur\_Dupond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monsieur\_Dupond](https://forums.unrealengine.com/u/Monsieur_Dupond)\
**Post date:** [August 20, 2021, 5:39pm UTC](https://forums.unrealengine.com/t/error-while-trying-to-hide-a-text-render/487748/1 "2021-08-20T17:39:16Z")

</div>

![346831-image-2021-08-20-183524.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/f/8dfcfacc76e03c7a91107592533cc66b6102137c.png)

Hey guys, i’m new to bp scripting and i have a door with a text render that is supposed to be shown when the player looks a it and hidden when he doesn’t, so i have a line trace every tick on the first person bp and when it hit the door the text appears, its working! but it doesn’t hide it and i have these two error messages:

“Blueprint Runtime Error: “Accessed None trying to read property K2Node\_DynamicCast\_AsPorte\_Blueprint”. Blueprint: FirstPersonCharacter Function: Execute Ubergraph First Person Character Graph: EventGraph Node: Set Visibility”

“Blueprint Runtime Error: “Accessed None”. Blueprint: FirstPersonCharacter Function: Execute Ubergraph First Person Character Graph: EventGraph Node: Set Visibility”

“porte\_blueprint” is the door bp and “Interact” is the text render

---

<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:** [August 21, 2021, 12:21pm UTC](https://forums.unrealengine.com/t/error-while-trying-to-hide-a-text-render/487748/2 "2021-08-21T12:21:55Z")

</div>

When the cast fails, it means the object isn’t there or it’s another, undesired object type. And you still try to access it, hence the error.

---

<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:** [August 21, 2021, 12:34pm UTC](https://forums.unrealengine.com/t/error-while-trying-to-hide-a-text-render/487748/3 "2021-08-21T12:34:09Z")

</div>

If you scroll to my answer here:

[https://answers.unrealengine.com/questions/1042681/impossible-to-create-game.html](https://answers.unrealengine.com/questions/1042681/impossible-to-create-game.html)

There’s an example demonstrating a very similar behaviour; the boxes pop up when the player looks at them and return to their normal state when they’re no longer being looked at.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![Monsieur\_Dupond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monsieur\_Dupond](https://forums.unrealengine.com/u/Monsieur_Dupond)\
**Post date:** [August 21, 2021, 9:46pm UTC](https://forums.unrealengine.com/t/error-while-trying-to-hide-a-text-render/487748/4 "2021-08-21T21:46:25Z")

</div>

It worked! thanks for the help!
