Unreal Engine 4 Inventory Tutorial: Drag and Drop (1)

  Рет қаралды 20,443

Jayanam

Jayanam

Күн бұрын

Пікірлер: 24
@brosimple2662
@brosimple2662 7 жыл бұрын
if anyone is having trouble in 4.18.2 on not detecting drag, use OnPreviewMouseButtonDown instead of OnMouseButtonDown
@stevebarnes8317
@stevebarnes8317 7 жыл бұрын
Arrgh thank you! Really wish I looked at the comments earlier... just spent 30mins googling. : )
@argons5118
@argons5118 6 жыл бұрын
thank you dude! helped a lot
@CrysisMachinima
@CrysisMachinima 6 жыл бұрын
You're a hero, thanks for the heads up!
@strezoiualexandru
@strezoiualexandru 6 жыл бұрын
Great point, thanks!
@seanomik6176
@seanomik6176 6 жыл бұрын
Thank you soooo much!
@Hato1992
@Hato1992 3 жыл бұрын
I had problem with it. First thing is what Bro Simple told, change from OnMouseButtonDown to OnPreviewMouseButtonDown . Second thing widget don't need to have button in first place. Without it, drag started working for me.
@Matlik
@Matlik 2 жыл бұрын
Your problem solved my problem too. Thanks
@Hato1992
@Hato1992 2 жыл бұрын
@@Matlik That's why I comment this. I'm glad it solved yours problem.
@VIN_Wolframwow
@VIN_Wolframwow 4 жыл бұрын
Awesome! Thanks a lot! Using UE 4.25.1, still works nice (OnPreviewMouseButtonDown needs to be used)
@mrmensje1
@mrmensje1 3 жыл бұрын
thanks a lot! I'm curious tho if you maybe know too why this is happens or what the difference is between the 2 events? I'd love to learn what I'm doing instead of copying haha :D
@VIN_Wolframwow
@VIN_Wolframwow 3 жыл бұрын
@@mrmensje1 I have no idea what is the difference and why the other one doesn't work anymore. I think it is related to some code refactoring but I haven't seen any patch notes related to this
@vertigo6982
@vertigo6982 7 жыл бұрын
2:49 What type is returned from GetController() function before it gets casted to playerController with type APlayerController*? Just curious because I saw earlier when you first used the Cast, you typed out the code but then the last thing you did was you then said we had to Cast the type so you already knew the type was different and needed to be casted. Like me.. I probably wouldve at first did 'APlayerController* playerController = GetController();' Then I would get an error about it being different types and I would probably then think maybe I need an 'auto' here and then do 'auto playerController = GetController();' just to see if the compiler would know the type for me and somehow make things work but im guessing the compiler would just return type APlayerController* for "auto" and it would still give an error that the types dont match for auto/APlayerController* to that being returned of GetController().. So I instead of thinking of using a Cast I would probably waste time and go and find the type that the function GetController() returns and waste more time trying to figure out what i did wrong before learning I need a "cast" there. lol Is the process I just said done by lots of programmers that they just learn after a while that when youre getting the PlayerController you'll need a cast? I hope it accurate say that with "cast" sometimes its more obvious than other times when you need a "cast" and other times its not so obvious that the types of both objects arent the same type.
@JayAnAm
@JayAnAm 7 жыл бұрын
GetController is a method of the framework to return the base class (AController*). To let the compiler know that you want to use the controller that you created (APlayerController) you need to down-cast to this class. Here is an article on OOP that might help: www.codeproject.com/Articles/835135/Object-Oriented-Programming-with-Cplusplus
@lokergames7058
@lokergames7058 Жыл бұрын
Drug and poor
Unreal Engine Inventory Blueprints : Drop Items
7:12
Jayanam
Рет қаралды 10 М.
Unreal Engine 4 Tutorial: Inventory Drag 'n Drop (2)
8:49
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Edge Crease in Blender!
0:10
BlenderVitals
Рет қаралды 9 М.
HTF do I? Drag and Drop: The Basics ( UE4 )
19:34
Mathew Wadstein Tutorials
Рет қаралды 77 М.
Unreal Engine 4 - Inventory System Tutorial (Free Download)
27:52
UE4 Inventory And Crafting / Guns
19:40
It's Me Bro
Рет қаралды 2,2 М.
UE4 C++ Inventory UI : Show Items
12:42
Jayanam
Рет қаралды 11 М.
Random Loot Drops When Enemy Dies - Unreal Engine Tutorial
10:25
Matt Aspland
Рет қаралды 22 М.
The Best Unreal Engine Sample Project you've never heard of
9:10
Unreal Engine Inventory Tutorial: Storage System
26:30
Seredias
Рет қаралды 4,5 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН