Enums in UE4 c++

  Рет қаралды 12,742

Matthew Hennegan

Matthew Hennegan

Күн бұрын

Quick set-up of Enums in C++, having them available in blueprint, and a few tools you can use with them.
For copy pasting:
UENUM(BlueprintType)
enum EMyEnum
{
PRE_Value1 UMETA(DisplayName = "BlueprintName"),
PRE_Value2 UMETA(DisplayName = "BlueprintName2"),
PRE_Value3 UMETA(DisplayName = "BlueprintName3")
// etc. etc.
};

Пікірлер: 17
@x7shadow10x4
@x7shadow10x4 Жыл бұрын
I have an error on these #include "weapons.generated.h"
@metushelach8
@metushelach8 4 жыл бұрын
Using UE4.25.3 - It worked for me.. thanks !
@__-tz6xx
@__-tz6xx 6 жыл бұрын
This is so frustrating. I am converting my blueprint code to C++ in a new project but can't make a dang enum because a red squiggly says it expects a semicolon yet I am doing everything right from this video and from looking at other examples. Is it because of my version is 4.20.2 and Visual Studio version 2017 version 15.8.1?
@Xblade-Dev
@Xblade-Dev Жыл бұрын
> 'Enum' is not allowed here [UnrealHeaderTool Error]
@dimaferox5133
@dimaferox5133 3 жыл бұрын
More shortly to string: FString LocalRoleEnumString = UEnum::GetValueAsString(GetLocalRole()); FString LocalRoleEnumString = UEnum::GetValueAsString(GetLocalRole());
@Cpt.Tripps
@Cpt.Tripps 5 жыл бұрын
A bit of a noisy work environment you got there. Would drive me crazy.
@echozero1512
@echozero1512 8 жыл бұрын
Thanks for this.
@matthewhennegan839
@matthewhennegan839 8 жыл бұрын
No worries!
@lotion2208
@lotion2208 3 жыл бұрын
thank you!!
@featheredmusic
@featheredmusic 5 жыл бұрын
Thank you!
@ИванНовожилов-э9з
@ИванНовожилов-э9з 2 жыл бұрын
very usefull - thanks a lot!
@KUNALSINGH-zk8su
@KUNALSINGH-zk8su 4 жыл бұрын
Its 2020 ...Well I Dont know if you are seeing this but i have a doubt .... do we have to write WEAP_ ..... before the names like pistol and all at 1:53
@devnyorm944
@devnyorm944 3 жыл бұрын
No, thats just the guy deciding to use a naming convention. You can call them whatever, but its good coding etiquette or something or other to have a naming rule...
@MarcusAseth
@MarcusAseth 6 жыл бұрын
This didn't worked for me, in 4.19
@Chaosian
@Chaosian 6 жыл бұрын
I was able to get mine to compile in 4.20.1 by using used the following include instead of including the .generated line: #include "CoreUObject.h"
@IWillYeah
@IWillYeah 5 жыл бұрын
Believe you need to compile it first
@virtualriot4062
@virtualriot4062 4 жыл бұрын
@@Chaosian Great, thanks! It seems c++ in unreal is really unreal..
UE4 c++ Event Dispatchers syntax
10:56
Matthew Hennegan
Рет қаралды 28 М.
Using Enums and BitFlags in Unreal Game Development
21:17
GGameDev
Рет қаралды 3,8 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 24 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 5 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 13 МЛН
How to Use the Detour Crowd Manager in UE5 (5 Minute Guide)
5:10
Lucian Tranc
Рет қаралды 1,3 М.
C++ Timelines Tutorial Unreal Engine 4
29:32
YawLighthouse
Рет қаралды 10 М.
Unreal Engine C++ Beginner Series #7: "Enums"
10:38
Sneaky Kitty Game Dev
Рет қаралды 2,8 М.
The GameMode and GameState in C++ and Blueprints
42:12
ChrisGD
Рет қаралды 21 М.
[UE4 C++ Basics] Character Sprinting (Ep. 1)
4:31
Micah Saint Germain
Рет қаралды 11 М.
UE4 - Blueprints to C++ Episode 9 - UEnum Basics
24:13
Mike Stevanovic
Рет қаралды 7 М.
Unreal Engine C++ Tutorial #04: Inventory
10:11
Luke Elrod
Рет қаралды 3 М.
UNREAL ENGINE | EVENT DISPATCHERS (BP) + DELEGATES (C++)
5:01
Unreal Engine C++/BP: Enums for Beginners
8:47
AsuraDev
Рет қаралды 6 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 24 МЛН