User:Rejecht/Getting Started UE4: Difference between revisions
From Unreal Wiki, The Unreal Engine Documentation Site
Line 29: | Line 29: | ||
==== Pointers ==== | ==== Pointers ==== | ||
When referring to something you use shared pointers, shared references, or weak 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. | |||
[https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/SmartPointerLibrary/index.html Unreal Smart Pointer Library] | [https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/SmartPointerLibrary/index.html Unreal Smart Pointer Library] | ||
IsValid is used on shared pointers to check if they are NULL. | .IsValid() is used on shared pointers to check if they are NULL. |
Revision as of 10:52, 10 August 2014
Unreal Engine 4
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 junction points.
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.