UE4 Tutorial: Character Health Bar UI Using C++

  Рет қаралды 15,800

_benui

_benui

Күн бұрын

Пікірлер: 32
@novaria
@novaria 4 жыл бұрын
Nice hehe. Love the dogs creepily floating around. Instant sub! Love the way you explain the concepts and then get into the code.
@olinolmstead4490
@olinolmstead4490 3 жыл бұрын
Exactly what I was looking for. UI progress bar using C++. Thank you!
@igotbit9454
@igotbit9454 2 жыл бұрын
THANK YOU SO MUCH you have no idea how hard it's been to find this info. instant sub.
@randomstuff7680
@randomstuff7680 3 жыл бұрын
Thanks for the Bind meta specifier. Didn't notice that and was usually using an additional function to initialize references from blueprint to code.
@doug_richardson
@doug_richardson 4 жыл бұрын
Nice, I didn't know about UWidgetComponent. Thanks Ben!
@martinaedma
@martinaedma 3 жыл бұрын
I wanted to implement Floating Combat Text and I was just seeing Blueprint tutorials everywhere ... I do not like Blueprints and prefer to write C++ code as much as possible. I was able to get a basic version going following this tutorial. Thank you!
@gonzalolinanaldana3949
@gonzalolinanaldana3949 2 ай бұрын
Great video this is just what i needed thanks a lot!!!!
@damiantomczak5286
@damiantomczak5286 4 жыл бұрын
I have a problem :( exactly with obejctinitializer.. Can you explain? After add const FObjectInitializer& ObjectInitializer to class, my project breaking down. Edit the problem is solved: I added a widget to the component which was not appeared on the scene.
@ЮраНедашковский-г7ш
@ЮраНедашковский-г7ш Жыл бұрын
Have a problem : I created a cube over which there should be a widget. So, when I add a widget in the actor blueprint based on my UWidgetComponent, the widget's text is not above the mesh. But when I separately added the blueprint widget, it was placed clearly above the mesh. Who knows the reason why the text is not over the cube?
@PaulGestwicki
@PaulGestwicki 3 жыл бұрын
Thanks for the tutorial, Ben. Does the process you show here represent your normal workflow between C++ and the UE4 Editor? That is, are you normally starting from C++ and then relaunching the editor?
@benui
@benui 3 жыл бұрын
Yeah I usually start from C++ because I have a visual spec from the art director. But it's totally possible to start with the BP, then make the C++ and reparent the BP.
@avokadoyazilim3229
@avokadoyazilim3229 3 жыл бұрын
Thank you!
@adeelyaqoobjanjua7212
@adeelyaqoobjanjua7212 2 жыл бұрын
Quality tutorials,
@malinroot
@malinroot 3 жыл бұрын
So cool 👍👍👍👍👍👍
@ПавелТектов-р1л
@ПавелТектов-р1л 2 жыл бұрын
Thank you very much, that helped a lot!
@migatocomeoscuridad
@migatocomeoscuridad 2 жыл бұрын
Great tutorial, but I found it confusing at some points because I have never owned visual assist as I cannot pay for it, so some of the shortcuts you used made me confused for a while such as including header files in one click. straight to the point and there wasn't any time wasting, thx a lot for tutorial
@pro.giciel9084
@pro.giciel9084 2 жыл бұрын
You can have a permanent free trial by deleting 2 files that VA track to check if your trial is over. I have a script that automatically deletes them to restart my trial version. It's been a year and I still have Visual Assist
@pro.giciel9084
@pro.giciel9084 2 жыл бұрын
In your User Temp directory delete file 1489AFE4.TMP and remove the registery key HKEY_CURRENT_USER\SOFTWARE\Licenses
@pro.giciel9084
@pro.giciel9084 2 жыл бұрын
@echo off set tempfile="%temp%\1489AFE4.TMP" set regkey=HKEY_CURRENT_USER\SOFTWARE\Licenses set has_error=0 tasklist | find /I "devenv.exe" > NUL if %errorlevel% == 0 ( echo Please close Visual Studio and try again. exit /B 1 ) echo. echo Resetting Visual Assist X trial period echo Deleting registry key %regkey% ... reg delete %regkey% /f if %errorlevel% == 1 ( echo Registry key was not deleted. set has_error=1 ) echo. echo Deleting temporary file %tempfile% ... del %tempfile%>NUL echo. if %has_error% == 0 ( echo Done. Visual Assist X should have forgotten about your trial period now. ) else ( echo Done. However, maybe not everything worked out right. ) exit /B %has_error%
@Zer0Flash
@Zer0Flash 2 жыл бұрын
this is perfect thanks a lot
@KUNALSINGH-zk8su
@KUNALSINGH-zk8su 3 жыл бұрын
Hi, can you reply to me...I want to know is it a good idea to put changes in nativeTick ....like in the blueprint we create a bind but I don't think it is called in every tick. Nice work man thankyou
@benui
@benui 3 жыл бұрын
Hiya! Bindings that are shown next to properties are called every frame, the same as NativeTick, but are less flexible for changing the tick rate and are kind of deprecated. I would recommend using NativeTick to start with and optimising later. Or if you're comfortable with delegates you could make sure that what you need to update is only called through them. It really depends on your usage.
@KUNALSINGH-zk8su
@KUNALSINGH-zk8su 3 жыл бұрын
@@benui thank you. I do have to learn delegates
@vexedev
@vexedev 3 жыл бұрын
Hey man, love your tutorials! Would love to see a video on how to move things in UMG. e.g. you collect coins and coins fly in the HUD to your coin status/icon and it pops/flashes or something. Or say you have an inventory grid of items, and as you select different items a 'selector' box appears on the inventory slot indicating which slot is focused. I found it really awkward coming from Unity to Unreal that you can't just set position of things in UI without them being parented to a Canvas Panel, so was really curious how people do these kind of things, Thanks!
@benui
@benui 3 жыл бұрын
That's a good question. For moving stuff in screen-space I guess you could do it in one of two ways: a) Parent everything you need to move to a Canvas Panel that is set to fill the screen (like you said) or b) Maybe you could use the Transform: Offset property to change the position of stuff to move it around the screen. For example you can get its current position on-screen, then calculate where you want it to be and change its transform offset to tween it. The benefits/drawbacks of a/b b - I think culling works based on where the widget is originally, not counting the transformed position, so it could get culled by accident. b - You're not restricted by hierarchy so you can move stuff even if it's nested quite deep in things a - is pretty simple, less calculation and messing with screen-space stuff
@kentuckyvapors464
@kentuckyvapors464 3 жыл бұрын
I have a unresolved link error when trying to create a reference to UWidgetComponent. Any ideas to fix this?
@brycegeurts3345
@brycegeurts3345 11 ай бұрын
add UMG to build.cs file
@Just12965
@Just12965 3 жыл бұрын
Thanks!
@disasterChildPo
@disasterChildPo 5 ай бұрын
When I create a child class (a blueprint) of a widget(cpp), there is no design mode. Help me please! udp: I found a solution: I need to create a child blueprint from a child blueprint)))) udp2: It doesn't work. I get 2 errors: A required widget binding "MyProgressBar" of type Progress Bar was not found. A required widget binding "MyProgressBar" of type Progress Bar was not found. udp3: it turns out that you need to create in a certain way. Not rnb and create a child from cp, but rmb by content browser and create BP from cpp class. And so everything worked. Thanks to the author for the video
@The__Josh
@The__Josh 2 жыл бұрын
u the best
@CHASA
@CHASA Жыл бұрын
Your mic is so low, can't hear anything!!
Unreal Engine Widget Reflector Tutorial
6:32
_benui
Рет қаралды 7 М.
Unreal Engine 4 UI: C++ & Blueprints UMG Workflow Tutorial
14:15
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
Unreal Engine AI with Behavior Trees | Unreal Engine
26:38
Unreal Engine
Рет қаралды 365 М.
Make UI With C++: How to use Slate in Unreal Engine
22:21
UI ANIMATION: Everything You Need to Know | UE4 Tutorial
9:21
How to create Modular and Scalable UI systems in Unreal Engine
19:15
AmrMakesGames
Рет қаралды 100 М.
UMG Widgets with C++ in Unreal Engine 5
16:09
Lively Geek
Рет қаралды 40 М.
Optimizing and Building UI for AAA Games | Unreal Fest Online 2020
23:52
Making UIs With C++ in Unreal Engine, by Ben UI
32:40
JetBrains
Рет қаралды 25 М.
Unreal Engine Data Roundtable Discussion
1:57:33
_benui
Рет қаралды 2,4 М.