Unreal Snippets
A collection of Sublime Text 3 snippets for writing Unreal Engine 4 game code
Details
Installs
- Total 2K
- Win 2K
- Mac 87
- Linux 89
Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
Unreal Snippets
A collection of Sublime Text 3 snippets for writing Unreal Engine 4 game code.
Some of these snippets assume that your project's source modules follow the convention of splitting source files into Public and Private subdirectories.
Available Snippets
Project (.uproject)
- uuproj - Boilerplate .uproject file (e.g.
Project.uproject
)
Module (C#)
- umt - Define a project-level target rules file (e.g.
Source/Project.Target.cs
) - umb - Define a module-level build rules files (e.g.
Source/ProjectCore/ProjectCore.Build.cs
) - umh - Declare a module in its public header file (e.g.
Source/ProjectCore/Public/ProjectCore.h
) - umc - Define a module in its private cpp file (e.g.
Source/ProjectCore/Private/ProjectCore.cpp
) - umcp - Define the primary game module implementation (one per project)
Logging (C++)
- ulh - Declare a module-level log category in a module-private header (e.g.
Source/ProjectCore/Private/Log.h
) - ulc - Define a module-level log category in a cpp file (e.g.
Source/ProjectCore/Private/Log.cpp
) - ull - Write a single UE_LOG line using the module-level log category
- ulf - Write a single UE_LOG line at Fatal severity
Classes (C++)
- uco - Declare a UObject subclass
- ucc - Declare a UActorComponent subclass
- uca - Declare an AActor subclass
- ucs - Declare a UBlueprintFunctionLibrary subclass (i.e. a “statics” class)
- uci - Declare a UInterface subclass with associated native interface
Macros (C++)
- ume - Insert an export macro in a type definition
Properties (C++)
- upc - Declare a component UPROPERTY (Visible/ReadOnly in “Components” category)
- upe - Declare an editable UPROPERTY (Editable/ReadWrite in “” category)
- upv - Declare a visible UPROPERTY (Visible/ReadOnly in “” category)
Functions (C++)
- uff - Declare a BlueprintCallable member function
- ufs - Declare a BlueprintCallable static function with a WorldContextObject parameter
- ufi - Declare a pure virtual function in a native interface class
- ufc - Declare a constructor that accepts a const FObjectInitializer reference (in a class header)
- ufr - Define the implementation of GetLifetimeReplicatedProps (in an actor source file)
Creating a Project
Example setup steps for creating a new Unreal C++ project from scratch:
- Create a root Unreal project directory: replace
Project
with your project name - Add
Project.uproj
, runuuproj
, populate with primary module name (e.g.ProjectCore
) - Add a
Source
directory - Within that directory, add
Project.Target.cs
, runumt
, enter primary module name - Add
ProjectEditor.Target.cs
the same way, set Type toTargetType.Editor
- If desired, add
ProjectServer.Target.cs
, set Type toTargetType.Server
- Add a subdirectory for the primary module, e.g.
ProjectCore
- Within that directory, add
ProjectCore.Build.cs
, runumb
- Add two subdirectories,
Public
andPrivate
- Within Public, add
ProjectCore.h
, runumh
- Within Private, add
ProjectCore.cpp
, runumcp
- Within Private, add
Log.h
, runulh
- Within Private, add
Log.cpp
, runulc
At this point, you should be able to build your project and open it with the version of UE4Editor that you've built against.