I don't need to test my programs. I have an error-correcting modem.
User:Rejecht/Getting Started UE4
From Unreal Wiki, The Unreal Engine Documentation Site
Contents
Unreal Engine 4
Microsoft Visual Studio Express 2013 for Windows Desktop
Setting Up Visual Studio for UE4
Protocol
Naming Conventions * Methods * Style * Organization
Replication
Game types and replicated values?
- Declare the UPROPERTY as replicated in C++
- Initialize the state of the variable in the game type constructor
- Declare the type of replication in the game type GetLifetimeReplicatedProps function
Low Level
Structure
Explains the basic client only {Camera, HUD}, client and server {Pawn, Character, PlayerState, GameState}, and server-only {Controller} junction points.
Objects
Unreal Object Handling UObject Instance Creation
Pointers
When referring to something you use may shared pointers (pointer + reference count), shared references, or weak pointers.
The shared pointer types are optimal for higher level or lower frequency access.
.IsValid() is used on shared pointers to check if they are NULL.
Usage Patterns
- Caching a pointer to something using a weak pointer does not touch reference counting thus requires a check against NULL before access (and it gets set to NULL automatically when the instance it points to gets destroyed).
- The shared pointer itself requires a check against IsValid before access.
- Custom C++ classes may want to implement FSerializableObject to handle reference counting when they refer to other UObject classes.
- Assigning NULL to a smart pointer may force a deletion of the object.