<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Menu
</aside>
Frostbyte’s Unreal Documentation
<aside> 💡
Naming conventions and encapsulation theory are stated here.
</aside>
Follow the official Unreal Engine Style Guide for an in-depth guide on naming conventions.
This will differ based off their protection level and other factors.
| Variable factors | Prefix | Additional Notes |
|---|---|---|
| Public | CamelCase | |
| Private | _camelCase | |
| Private & instance editable | camelCase | This is due the the “_” shifting the variable name over in the details panel |
| • This goes for data assets too |
<aside> ❗
Always make variables private when possible! If variables are needed elsewhere, the following section will explain a solution.
</aside>
Create getters when private variables must be accessed by external classes or children.
<aside> 💡
Getters are also useful for returning repetitive information, not just one variable.

</aside>
Create setters when private variables must be modified with additional safeguarding
<aside> 💡
Setters handle repetitive code before setting a variable.

</aside>
Continue to Folder Structure