# AHUD Uproperty not visible in editor

**URL:** <https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531>\
**Category:** UI\
**Tags:** properties, UProperty, hud, unreal-engine, question, CPP\
**Created:** [February 28, 2018, 3:23am UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531 "2018-02-28T03:23:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geverson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Geverson](https://forums.unrealengine.com/u/Geverson)\
**Post date:** [February 28, 2018, 3:23am UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/1 "2018-02-28T03:23:46Z")

</div>

Hi Everyone,

I’m trying to figure out how to make an Uproperty in a custom AHUD class to become visible in Editor.  
Unfortunatelly, I have not found any answer about this question or any similar problem. My intent is to edit this variable in editor to inform an string.

```
UCLASS()
class ARENAPROJECT_API AHtmlHUD : public AHUD
{
	GENERATED_BODY()
	
public:
	AHtmlHUD();

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="HUD Properties")
	FString SPAUrl;
};

```

Thanks

---

<div class="post-metadata">

**Author:** ![Atheist91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Atheist91](https://forums.unrealengine.com/u/Atheist91)\
**Post date:** [February 28, 2018, 11:05am UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/2 "2018-02-28T11:05:57Z")

</div>

Hello.

Above code looks correct. At least to show property in editor.  
I’m guessing you might’ve forgot about setting your HUD class as default one in game mode/world settings?  
See [Game Mode](https://docs.unrealengine.com/latest//INT/Gameplay/Framework/GameMode/index.html#gamemodes) and [World Settings](https://docs.unrealengine.com/latest/INT/Engine/Levels/WorldSettings/index.html) documentations for more info.

If you’d want to modify it in editor you’d have to use **EditDefaultsOnly** instead of **VisibleAnywhere** or **BlueprintReadWrite** instead of **BlueprintReadOnly** in UPROPERTY macro. First will allow you to modify it in default blueprint class, the second allows to modify it on runtime instance of your HUD.

As for this property not showing up in editor,

---

<div class="post-metadata">

**Author:** ![Geverson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Geverson](https://forums.unrealengine.com/u/Geverson)\
**Post date:** [February 28, 2018, 12:57pm UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/3 "2018-02-28T12:57:49Z")

</div>

Hi Atheist91,  
I’m already using the custom class in world settings and had tried using these options, only the ‘EditDefaultsOnly’ I haven’t tried yet. I’m gonna try that one and give you a feedback soon.

Thanks

---

<div class="post-metadata">

**Author:** ![Atheist91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Atheist91](https://forums.unrealengine.com/u/Atheist91)\
**Post date:** [February 28, 2018, 1:14pm UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/4 "2018-02-28T13:14:45Z")

</div>

Are you using your native class in world settings or some blueprint that derives from it?

Also, how exactly you want to modify that property? In editor or at runtime?

---

<div class="post-metadata">

**Author:** ![Geverson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Geverson](https://forums.unrealengine.com/u/Geverson)\
**Post date:** [February 28, 2018, 1:17pm UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/5 "2018-02-28T13:17:24Z")

</div>

I’m using a blueprint derived from that custom class and trying to edit that value in Editor using the blueprint derived.

---

<div class="post-metadata">

**Author:** ![Atheist91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Atheist91](https://forums.unrealengine.com/u/Atheist91)\
**Post date:** [February 28, 2018, 1:23pm UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/6 "2018-02-28T13:23:31Z")

</div>

Okay, then everything seems to be set up properly.

Sometimes when I modify header file while compilation is already running, the changes never make it to the binaries. In such case, even when I try to recompile project, it doesn’t see any changes. I have to modify header again to force it to be compiled again. Maybe that’s the case?

---

<div class="post-metadata">

**Author:** ![Geverson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Geverson](https://forums.unrealengine.com/u/Geverson)\
**Post date:** [February 28, 2018, 10:22pm UTC](https://forums.unrealengine.com/t/ahud-uproperty-not-visible-in-editor/418531/7 "2018-02-28T22:22:06Z")

</div>

Finally, recompiling has worked but only after using BUILD \> CLEAN PROJECT in Visual Studio. I believe that some built part was not being updated when recompiling and after this clean up it was correctly rebuilt.

Thank you very much
