# FPS Template - FPSCharacter - Camera AllowPrivateAccess meta specifier

**URL:** <https://forums.unrealengine.com/t/fps-template-fpscharacter-camera-allowprivateaccess-meta-specifier/410133>\
**Category:** C++\
**Tags:** unreal-engine, UE4, question, CPP\
**Created:** [November 20, 2017, 5:46pm UTC](https://forums.unrealengine.com/t/fps-template-fpscharacter-camera-allowprivateaccess-meta-specifier/410133 "2017-11-20T17:46:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c1fc4d27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c1fc4d27](https://forums.unrealengine.com/u/anonymous_user_c1fc4d27)\
**Post date:** [November 20, 2017, 5:46pm UTC](https://forums.unrealengine.com/t/fps-template-fpscharacter-camera-allowprivateaccess-meta-specifier/410133/1 "2017-11-20T17:46:41Z")

</div>

* * *

Could anyone explain what the meta tag “AllowPrivateAccess” means in the context of the template FPS character’s header when declaring the camera class?

* * *

```
	/** First person camera */
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))
	class UCameraComponent* FirstPersonCameraComponent;

```

* * *

I don’t understand what this means since it isn’t specifically declared privately. I’m trying to remember correctly, but I just want to make sure on this: Isn’t everything private by default unless declared otherwise? If so, then completely disregard my question, I get it. If not, would these types of declarations (outside access modifiers) be considered global? I’m just trying to reverse engineer the template code, so I feel absolutely comfortable working with UE4.

* * *

EDIT\*: Removed last unnecessary comment as to avoid convincing anyone, who’s struggling with something, that asking questions is something to be embarrassed about. _ **IT’S NOT!** _ Stay humble or remain in the dark, friends. \<3

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c1fc4d27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c1fc4d27](https://forums.unrealengine.com/u/anonymous_user_c1fc4d27)\
**Post date:** [November 25, 2017, 5:34am UTC](https://forums.unrealengine.com/t/fps-template-fpscharacter-camera-allowprivateaccess-meta-specifier/410133/2 "2017-11-25T05:34:13Z")

</div>

## Found the answer in this question: GENERATED\_BODY vs GENERATED\_UCLASS\_BODY ([Topics tagged unreal-engine & question](https://answers.unrealengine.com/questions/245618/generated-body-vs-generated-uclass-body.html))

* * *

An excerpt from user **Andrii Melnyk** ’s posted answer, which resolved my original question above:

_“The other difference is that, in comparison to GENERATED\_UCLASS\_BODY(), GENERATED\_BODY() doesn’t have the public specifier in it, so any class members that are declared after it are private by default (you can explicitly declare them as public).”_

* * *
