• Stars
    star
    140
  • Rank 253,365 (Top 6 %)
  • Language
    C++
  • License
    MIT License
  • Created over 3 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A plugin adding a bunch of common helper functionality that I use in my UE projects

Steve's UE Helper Plugin Library

Introduction

This is a helper plugin library for Unreal Engine (version 4.26+ / 5.0+) which makes a bunch of things better:

  • New Widgets
    • Focusable buttons, menu stacks, control prompts and more
  • Input events
    • Reliable notification when the player changes input method

Examples

This project contains the master documentation for this library, but if you want to see examples of its use, see the Steve's UE Examples project.

Installing this plugin

Cloning

The best way is to clone this repository as a submodule; that way you can contribute pull requests if you want. The project should be placed in your project's Plugins folder.

> cd YourProject
> git submodule add https://github.com/sinbad/StevesUEHelpers Plugins/StevesUEHelpers
> git add ../.gitmodules
> git commit

Alternatively you can download the ZIP of this repo and place it in YourProject/Plugins/StevesUEHelpers.

Referencing in C++

Edit YourProject.Build.cs and do something similar to this:

public class YourProject : ModuleRules
{
	private string PluginsPath
	{
		get { return Path.GetFullPath( Path.Combine( ModuleDirectory, "../../Plugins/" ) ); }
	}

	public YourProject(ReadOnlyTargetRules Target) : base(Target)
	{
        // Your existing rules
        // ...


		AddStevesUEHelpers();
	}

	protected void AddStevesUEHelpers() {
		// Linker
		PrivateDependencyModuleNames.AddRange(new string[] { "StevesUEHelpers" });
		// Headers
		PublicIncludePaths.Add(Path.Combine( PluginsPath, "StevesUEHelpers", "Source", "StevesUEHelpers", "Public"));
	}

It's also worth adding StevesUEHelpers to your own .uproject as a plugin reference:

"Plugins": [
		...
		{
			"Name": "StevesUEHelpers",
			"Enabled": true
		},
		...

After adding this you should right-click your .uproject file and "Generate Visual Studio Project Files".

You can use most of the features without doing anything else, but certain features require some additional setup, see below.

Configure Custom GameViewportClient

This library contains a new UGameViewportClient subclass called UStevesGameViewportClientBase, which is used to suppress the mouse cursor in menus then using a gamepad.

Unfortunately UE4's Slate overrides the mouse pointer visibility sometimes, so this fixes that.

To use it, simply:

  1. Open Project Settings
  2. Go to Engine > General Settings
  3. Change Game Viewport Client Class to StevesGameViewportClientBase

Configure UiTheme

Some features require you to configure some theme information for the UI, which is discussed in more detail in the UiTheme section.

Game instance subsystem

In order to track stateful things like the current input mode for each player, there is a custom GameInstanceSubsystem called StevesGameSubsystem, which you can tap into anywhere in Blueprints by searching for it:

Game Instance Subsystem

Once you have access to this you can do things like get the latest input device used:

Game Instance Subsystem

For more details, see the Input section.

License

The MIT License (MIT) Copyright ยฉ 2020 Steve Streeting

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the โ€œSoftwareโ€), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED โ€œAS ISโ€, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

3rd Party Licenses

Portions of this software include code from 3rd parties:

Math routines from David Eberly, Geometric Tools, Redmond WA 98052 Copyright (c) 1998-2021 Distributed under the Boost Software License, Version 1.0.

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

lfs-folderstore

git-lfs custom transfer adapter which simply uses a folder as the remote LFS media store (e.g. a shared NAS folder)
Go
283
star
2

SPUD

Steve's Persistent Unreal Data library
C++
281
star
3

UnityRecyclingListView

A fast scrolling list component for Unity UI which recycles its child elements
C#
173
star
4

UnityInstancedHealthBars

Example projects using instancing in Unity to render enemy health bars in 1 draw call
C#
146
star
5

UnityCsvUtil

Lightweight but type safe CSV serialise/deserialise of objects
C#
136
star
6

UEScripts

Helper scripts for Unreal Engine
PowerShell
120
star
7

UnityMultiBuild

Batch build for multiple platforms from within the Unity editor
C#
103
star
8

SUQS

Steve's Unreal Quest System: data-driven quest system for Unreal Engine
C++
100
star
9

SUDS

Steve's Unreal Dialogue System
C++
69
star
10

UnitySpline2D

2D spline utility for Unity
C#
68
star
11

UnityToonPBS

Adaptation of the standard Unity PBS shader to include Toon lighting
ShaderLab
28
star
12

spriterecolour

Sprite processor to allow dynamic recolouring
Go
26
star
13

SpriteRecolourUnity

Demo project for spriterecolour in Unity
C#
22
star
14

UnityBuildReleasePS

Set of useful Powershell scripts for batch building games made in Unity and releasing them to Itch & Steam
PowerShell
20
star
15

GitScripts

A series of useful Git scripts that I use
PowerShell
17
star
16

SUSS

Steve's UtilityAI SubSystem (for Unreal Engine 5)
C++
15
star
17

SPUDExamples

An example project for SPUD
C++
13
star
18

StevesUEExamples

Example project that demonstrates the use of StevesUEHelpers
C#
10
star
19

git-lfs-ssh-serve

Experimental reference implementation of pure SSH server for Git-LFS
Go
8
star
20

FbxUdimUnpack

Tool for unpacking a model that uses UDIMs into a form more suitable for real-time use (separate materials per texture tile)
C++
7
star
21

SSSelectableToolbar

A preference-pane style selectable toolbar which switches views easily, allowing different sizes per pane, and not requiring a lot of manual code.
Objective-C
6
star
22

StevesUnrealUtils

Miscellaneous Unreal utilities
C++
6
star
23

SUDSExample

Example project for SUDS (Steve's Unreal Dialogue System)
C#
5
star
24

recipes

Just some recipes (real ones, as in baking / cooking)
5
star
25

UnityMarchingSquares

C#
5
star
26

SJSWolf

An old codebase from 1995 implementing a Wolfenstein engine
C++
4
star
27

PhotosExport

Export content from Photos.app to a directory
Objective-C
3
star
28

SUDSProExample

C++
3
star
29

suds-code

VSCode plugin for SUDS
Batchfile
3
star
30

cocoa2dotnet_translationconversion

Convert Cocoa .strings localisation files to .Net resource files
Python
2
star
31

s3putsecurefolder

Syncs the contents of a folder to Amazon S3, optionally encrypting the files with GPG beforehand.
Python
1
star