-
Notifications
You must be signed in to change notification settings - Fork 2
01. Common Naming Patterns
Cruz Wootten edited this page Apr 2, 2024
·
1 revision
Naming is crucial for readable and maintainable code. Try to be consistent in the naming style throughout your code.
-
IsX
: Often used for naming logic variables to ask a question (for example,IsEmpty
). -
OnX
: An overloadable function called by the framework. -
SubscribeX
: Subscribe to framework event named X, often passing anOnX
function to it. -
MakeC
: Make an instance of class c without overloading the c constructor. -
CreateC
: Create an instance of class c, beginning its logical lifetime. -
DestroyC
: End the logic lifetime. -
C:c
: If you’re working with a single instance of class c, it’s fine to call it C.
- Decorate type names. Just call it
thing
, notthing_type
orthing_class
. - Decorate enumeration values. Not
color := enum{COLOR_Red, COLOR_Green}
, usecolor := enum{Red, Green}
.
Use of the Unreal Engine, Unreal Editor for Fortnite and Verse is governed by the terms of the Unreal® Engine End User License Agreement.
A majority of this content was taken from VERSE DOCUMENTATION Such content belongs to EPIC GAMES
Verse icon, UEFN, UEFN icon, Unreal Engine, Unreal Engine logo, Fortnite, & Fortnite icon are property of EPIC GAMES
This github is not maintained or endorsed by EPIC GAMES. It is made for educational purposes only.
This wiki was compiled by Lil Wikipedia