Unreal Engine City Building Game - Mouse Cursor, Click Object In-World and Highlight Material - EP 3

  Рет қаралды 78,960

The Game Dev Channel

The Game Dev Channel

Күн бұрын

Пікірлер: 118
@Justicefu
@Justicefu 2 жыл бұрын
hint: promote to variable will save you a lot of time and right click -> 'convert to validated get' helps keep things tidy instead of using 'is valid' nodes on your variables Really cool tutorial though, thanks
@JonoJamesJonoJames
@JonoJamesJonoJames 2 жыл бұрын
3 things cleared up , Actor components , Mesh Selection ,Highlighting Meshes good clean blueprint code and easy to follow . Thanks for that
@samuela6271
@samuela6271 3 жыл бұрын
So good! This is a great effect! I'm really enjoying your thinking and approach to your game! Thanks for the info!
@KayPhantomville
@KayPhantomville 3 жыл бұрын
I wouldn't mind a more detailed explanation of why you use certain blueprint nodes, or at least being slower and a little less concise when doing so, just when you explained the highlight material. I know you have a lot of stuff to cover, but for a beginner like me and many others it's difficult to understand the reason behind your choices. For example, while the camera tutorial was very clear to me, I didn't understand the logic and purpose behind the StaticMeshRef thing at all. I wouldn't want to end up copying your work without having the ability to tweak it later if I'll ever want to do something different. Other than that, thank you for your tutorials!
@veemex
@veemex Жыл бұрын
This explanation primarily revolves around fundamental concepts in Unreal Engine and the idea of a game loop, along with some optimization practices. Though I may not be an authority in this field, let me try to make it as straightforward as possible for you. In the game engine, there are two events that are constantly active: BeginPlay and Tick. To clarify, Tick is an event that gets triggered on every single frame, meaning it's continually operating in the background. On the other hand, BeginPlay is an event that activates only once, which is right after the game starts. The reason you're storing the reference to a static mesh once during the BeginPlay is because the mesh itself isn't going to change. If you attempted to call GetOwner and GetComponentByClass every frame during the Tick event, it could lead to a slower performance due to the extra time required for these operations. Also, it might make your code unnecessarily complex.
@itanshi
@itanshi 3 жыл бұрын
A way to clean up the nodes in the clickable component bp is to create an event via event dispatcher category. it gives a drop down to select the event. So you can split up the events.
@gianclaudiomorando2392
@gianclaudiomorando2392 3 ай бұрын
Hello. So, could you explain how to create the event dispatcher to print to screen a drop down window to select the event? many thanks.
@sleepypapercrowns
@sleepypapercrowns 3 жыл бұрын
Thank you so much for this video! I needed it for my project and only found really old tutorials before that I didn't understand and that did not even work anymore. So thanks a lot!
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
No problem! I'm glad it helped
@manollobango
@manollobango Жыл бұрын
Hi, I just started to watch your city builder tutorial series today and I really appreciate your kindness to share your work! Since this video is almost 2 years old and besides that Unreal Engine 5 has been released, I'm wondering now if you would, based on your current knowledge, change some things like the camera movement system and the actor type or would you do it exactly the same today?
@ItsExetic
@ItsExetic Жыл бұрын
How come the highlight doesn't work on quixel assets, but clicking on the mesh to change material does?
@MAKRstudios
@MAKRstudios Жыл бұрын
Reallllly love the tutorial!!! For those ins UE5, and using nanite the highlight material will not work. Nanite only works on solid opaque materials. And if I understand correctly Post-Process Materials are not considered opaque since it has translucency
@KaelthasProductions
@KaelthasProductions Жыл бұрын
I dont get why it doesnt work when nanite is enabled on that mesh
@ycaro.3d
@ycaro.3d Жыл бұрын
yeah, here too! Someone can help us?
@AcTAL0n
@AcTAL0n 3 жыл бұрын
Brilliant Tutorial! Well paced and super informative, thank you a lot for that :)
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
Thank you very much, glad you're enjoying it! :)
@nullptr7347
@nullptr7347 2 жыл бұрын
It doesnt work when i have transparent materials on the object.Is there any way to make it work with transparent materials ? Appreciate any help!
@Regisseur12
@Regisseur12 2 жыл бұрын
Nice!!! MoseOver Effect was exactly, what I was looking for!!!
@Smile1oasis
@Smile1oasis 7 ай бұрын
Funny thing is that I actually saw the other tutorial which makes the material and clicked this video to get explanation about the nodes used in the material. 😂😂. Anyway Nice tutorial.
@4twstdmdl
@4twstdmdl 6 ай бұрын
Following tutorial in UE 5.3, encountered black highlight border instead of blue, resolved by changing Blendable Location back to After Tonemapping @8:39 I don't know anything about UE, so if anyone has follow-up questions about this I won't be able to answer them. I figured this out by just going back through the tutorial and changing values to see what impacted the outcome and for some reason leaving this value as the default worked so I figured I would post this to help anyone else that encountered the same issue.
@alecchalmers_
@alecchalmers_ 6 ай бұрын
My highlight is permanently highlighted. Trying to figure out where I went wrong!
@DiscsGallery
@DiscsGallery 9 ай бұрын
Thank you so much my friend! an amazing tutorial!
@TimeForRPG
@TimeForRPG 3 жыл бұрын
Right now its best outline tutorial
@fortwoth
@fortwoth Жыл бұрын
Thanks for the nice and clear tutorial!
@Bizob2010
@Bizob2010 2 жыл бұрын
@The Game Dev Channel I'm loving your series so far. I do have a question though: How much of these tutorials would change in between UE4 & UE5? Has UE5 added stuff that would change how you implement all this?
@pythonmastery4051
@pythonmastery4051 2 жыл бұрын
It won't. It's pretty much the same when it comes to the code
@thomascurtis889
@thomascurtis889 3 жыл бұрын
Great tutorial, any help on changing the colour of the outline when clicked? I've noticed you can have multiple materials in the post process materials and have created two instanced of the material with different colours, however I have no clue how to change between them when I click the object
@Luna-gleam
@Luna-gleam 2 жыл бұрын
You could make a parameter in the material and change that parameter in the blueprint. However, I'm not sure if you'd be able to have two different colored outlines at the same time with this method
@nothingspeaks
@nothingspeaks 9 ай бұрын
Great work. Works well for me for objects however i was wondering how you would go about making it do the same on enemies, like diablo for example.
@unrealdevop
@unrealdevop Жыл бұрын
The Outline seems to get thicker or thinner depending on how far I am from it. Did I do something wrong? I went back twice to double check
@unrealdevop
@unrealdevop Жыл бұрын
This must have been some sort of bug, for some reason it stopped doing it on it's own.
@ycaro.3d
@ycaro.3d Жыл бұрын
Amazing tutorial! Thank you a lot
@kiwk8139
@kiwk8139 2 жыл бұрын
My highlight works. The switching between red and green works, but not at the same time. The highlight only works when I assign the material to the CB_HighlightMaterial. However, it is black. And when I click on it, it becomes green with no highlight upon hovering anymore. I can't seem to get the green/red AND the highlight at the same time
@kiwk8139
@kiwk8139 2 жыл бұрын
Fixed it. I had to go into my Red and Green Materials and set, "Allow Custom Depth Writes" to true. As well as the option Render after DOF" set to false.
@kingskye7110
@kingskye7110 2 жыл бұрын
as a newcomer,great tutorial!
@thomaspecheur312
@thomaspecheur312 Ай бұрын
Hi, the tutorial is great, thank you for doing it. Only one issue, I am having but not if it is due to my setting but I got a long delay or need to click a lot before the blueprint makes its effect. Is is due to by the tick event on Player Controller? Mine is set at 0 but seems to be quite slow and buggy? Am I missing something?
@eggwithtofu7295
@eggwithtofu7295 2 жыл бұрын
why CB_Clickable_Component didn't work? i have tried so many time and still didn't work
@Junqers
@Junqers 2 жыл бұрын
THANK YOU!
@DivaNove
@DivaNove Жыл бұрын
worked like a charm
@jeffreytablan4043
@jeffreytablan4043 2 жыл бұрын
Hi, sir! I really like what you did here. I would love to integrate it in a project that I've been working on. However, as I did all the steps, the highlight doesn't seem to work. It would only show briefly after you clicked on the mesh and disappear again. Any insights on where do you think I might went wrong?
@liangmen
@liangmen 2 жыл бұрын
Make sure you checked the "infinite extent (unbound)" in the property window of the PostProcessVolume, it solved my issue
@lethiagames9208
@lethiagames9208 Жыл бұрын
if you zoom out then the highlight effect gets off
@oculusidirisov6981
@oculusidirisov6981 Жыл бұрын
does not work on transparent glass please help
@Milo-yn5rw
@Milo-yn5rw Жыл бұрын
Great video! even for a 3days beginner it helped me get a AUREKA feeling!!! Does anyone know how to make the outline thinner or translucent?
@devlogerio
@devlogerio 2 жыл бұрын
This saved me a ton of time, thanks, Im wondering where are you now, WHy no new posts
@thegamedevchannel3063
@thegamedevchannel3063 2 жыл бұрын
Hiya, really glad the video helped! I did a post about it on the channel page explaining it but the TLDR is my PC broke
@christopherlamott9351
@christopherlamott9351 Жыл бұрын
Anyone know why the selection would work on both left AND right mouse click? I'm really scratching my head here, haha.
@elizabethlaplume2267
@elizabethlaplume2267 Жыл бұрын
Where do the red and green material come from? I didn't see it anywhere in the first three videos and didn't start with it?
@elizabethlaplume2267
@elizabethlaplume2267 Жыл бұрын
So I figured out the red and the green but while I have gotten the highlight to highlight, it is not a full outline, it covers the whole object. I followed the linked tutorial and this one, any suggestions?
@cactusfloydx5d
@cactusfloydx5d 3 жыл бұрын
Thanks a lot man. Btw, what is the function of Param0 and Param1? just placeholders? thanks so much for your tutorial, really helped me out. I have nor slept or eaten in days lol
@tanh9923
@tanh9923 9 ай бұрын
Wonderful!
@HubertKnoblauch3DContentOnline
@HubertKnoblauch3DContentOnline Жыл бұрын
amazing!!!!
@vkum7500
@vkum7500 3 жыл бұрын
Thank you for the tutorial. Do you know what to change in material to diable see-through from walls or other objects?
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
If you look at the next video I believe I go over that, sorry for not including it in this one!
@b_m_p_1_9
@b_m_p_1_9 2 жыл бұрын
Thanks for the tutorials, just a quick question, is there some special way to save the whole file as I go along? I finished this video and the preceding ones yesterday, saved all and when i went back into it today almost everything I had done was reset. Cursor didn't work, camera movement controls were all wacky and the clickable material wasn't working anymore. Have I done something wrong when saving?
@dacdac5015
@dacdac5015 Жыл бұрын
Hi, great job. Don't work for meshes what have translucent materials applied on it? How to set to work for these meshes too?
@3dchuy
@3dchuy 3 жыл бұрын
Awesome tutorial! one question If I also want it to affect my vehicle (Skinned Mesh Component), DoI just duplicate everything and changed the variables for that kind of mesh? or is there a more simple and efficient way to make it work on both. Thanks!
@3dchuy
@3dchuy 3 жыл бұрын
Ahh! I figured it out! I was getting an error on the mouse over event, so what I did is to set a new variable IsSkeletal? (boolean) otherwise it would be trying to set the custom depth on both references but one doest exist. I took a screenshot is anyone need to add more types of components. Again I'm a total newbie to scripting so if there's even a better way let me know. ibb.co/LZXqpG1
@m.r5380
@m.r5380 2 жыл бұрын
Great tutorial! Question though - How could we blur out the outline?
@srknAyn
@srknAyn Жыл бұрын
I wonder. is it possible to change the material of the objects by selecting their surfaces or to select the vertex of the selected surface and get it as data?
@DivaNove
@DivaNove Жыл бұрын
16:32 *nervous voice* we're nearly at the end now. classic lol
@thegamedevchannel3063
@thegamedevchannel3063 Жыл бұрын
😂
@pricepig
@pricepig 4 ай бұрын
if anyone is having issues getting your cube to change colors, change the collisions to default. In earlier tutorials he made it so they were nocollision but that doesn't work if you want to click on it
@alexeyzak3999
@alexeyzak3999 2 жыл бұрын
thanks for tutorial
@AMobOGobos
@AMobOGobos 2 жыл бұрын
Around 5:00 you start building the on click events for static meshes but you never showed or explained how you created the red and green materials. How do I create these materials? Where do they appear once they are created?
@DesmondMiles31
@DesmondMiles31 2 жыл бұрын
Awesome video
@user-fl7kt2fl9g
@user-fl7kt2fl9g 4 ай бұрын
when making the selectable actor component the get owner does not recognise its self as an actor and requires target to have a connection i dont know if this is a change in updates as im using UE5
@user-fl7kt2fl9g
@user-fl7kt2fl9g 4 ай бұрын
I created a new actor component blueprint and it now works not sure what the difference is
@denischetyrin6980
@denischetyrin6980 6 ай бұрын
tnx you
@Infestedpee
@Infestedpee 2 жыл бұрын
Ok, this took me about 2-3 hours to realize -- the red/green you were creating was your own assets, not the highlighted part. I was confusing the highlighting part AND your materials for true/false when clicking to be the same
@unclearnold790
@unclearnold790 3 жыл бұрын
Thanks
@gamerdweebentertainment1616
@gamerdweebentertainment1616 2 жыл бұрын
Hmm... not sure if to watch whole series... :/ This, was great... I hope... Interesting method... now to implement interface and make child objects etc. Wait... why use clickable component... "Easier to manage or make add-ons" I guess... either way... thanks!
@samdev9708
@samdev9708 2 жыл бұрын
Hello thank you for this second tutorial, but in the Set Material nodes in Select Asset it is empty and I cannot choose green or red, can someone help me add them?
@autogenes
@autogenes 2 жыл бұрын
Anybody know any resources to go and actually get a proper understanding of how all the material nodes and settings work? Great vid btw :D
@Lagimaster-gf8wr
@Lagimaster-gf8wr Жыл бұрын
3:54 had some problems with static mesh ref as it isn't compatible with return value in get component by class. Could someone help me?
@cecisharp
@cecisharp 2 жыл бұрын
I cant find the "Bind event to on clicked". Did unreal get rid of it?
@Ninja-Dev
@Ninja-Dev 9 ай бұрын
I have managed to far to update this tutorial (and the previous one) to Enhanced Input, but I cannot get the clicking of the static mesh working. Anyone have any ideas? @The Game Dev Channel ?
@DJ2punto0
@DJ2punto0 5 ай бұрын
Hey man, stubborn fellow Enhanced Input user here! I managed to make it work by going to your Player Controller, on its properties you can set 'Enable Click Event' as True. This creates an additional issue, as our fellow guy here disabled the collisions on the actors so they don't collide with the camera, but they don't seem to catch the clicks either!! We need to set the collisions as 'Custom' and on the 'Collision Responses' set everything to 'Ignore' and change the Visibility to 'Block'. Its been quite some time since your question, but I hope it helps!
@DRdarktnt
@DRdarktnt 2 жыл бұрын
Not sure why but my outline is unstable and 'twitches' when done in UE5, anyone got a guess for why this is happening?
@ChuckDebWood
@ChuckDebWood 3 жыл бұрын
Help! I'm not finding the NOT node in UE5? Please advise :) Thanks for making these videos
@ChuckDebWood
@ChuckDebWood 3 жыл бұрын
Found it! NOT Boolean - Again THANKS for making these videos, very helpful!!!
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
Sorry for the delayed response, glad you got it sorted!
@sanbait
@sanbait 2 жыл бұрын
why not work changes color for mesh?
@mathraww
@mathraww Жыл бұрын
Hi, my problem is that the highlight part doesn't work. I rewatched 3 times the material part and everything is correct. Same for the blueprint and the post process volume. Any idea why ?
@jongofett2343
@jongofett2343 Жыл бұрын
=are you trying to highlight a blueprint static mesh? cuz it dont work for me either
@mathraww
@mathraww Жыл бұрын
@@jongofett2343 i did the same as in the video with the cubes
@m-carrollzgamedev7111
@m-carrollzgamedev7111 6 ай бұрын
I had this same problem, watched another video and I had to set the CustomDepth Stencil Value to 1 in the rendering section in the details panel on the static mesh :)
@johsh__
@johsh__ 2 күн бұрын
​@@m-carrollzgamedev7111 this worked to get the outline, however it doesn't go away. It's doesn't disappear or reappear when my mouse moves over it, any help?
@ethanwasme4307
@ethanwasme4307 11 ай бұрын
anyone else here because the native on-hit events don't work >:(
@mr.dr.pr.patrick352
@mr.dr.pr.patrick352 3 жыл бұрын
How to do it with a Skeletal Mesh Component?
@williamwriting1063
@williamwriting1063 Жыл бұрын
get the the skeletal mesh, rather than the static mesh nodes. They have the same setter function for the render.
@NickFehlinger
@NickFehlinger Жыл бұрын
Matt Aspland is actually the best KZfaq for learning Unreal. "It works perfectly". I have plans to launch a channel in the next few months and I'm going to be stealing everything that works from him.
@beryprion4904
@beryprion4904 3 жыл бұрын
Hi could i have some help? i just follow this tutorial and when i finish to do it. the Highligh material replace the green changing material dont know how any ideas?
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
Do you mean that you don't have a green material anymore?
@beryprion4904
@beryprion4904 3 жыл бұрын
@@thegamedevchannel3063 yea it was working but with highlight it doesnt work anymore instead of i've like no mat textures
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
@@beryprion4904 Hmm the materials are meant to be separate, you should have a post process material that you specify in the post process volume and then a normal green material that is set on the static mesh. You shouldn't have the highlight material on the object
@beryprion4904
@beryprion4904 3 жыл бұрын
@@thegamedevchannel3063 okay i try to debug, so green is the right one when its clicked but it's not being rendered for some reasons
@koalafemurs
@koalafemurs 3 жыл бұрын
@@thegamedevchannel3063 Having the same Problem as Bery. UE 4.26.2. The green mat gets assigned but not displayed, oddly enough.
@Madarauchiha-jn3cb
@Madarauchiha-jn3cb Жыл бұрын
Yo quiero hacer click en un botón 3D que tengo en el mapa Dentro del juego Quiero visualizar el raton Y hacer click Y que luego de tantos clicks el botón se destruya
@aothanhhoa1723
@aothanhhoa1723 3 жыл бұрын
Nice vid, thank you! To be more specific, pls help to answer me: what's type of template category you used? (Games, Film-Televison.., Architecture-Engineering..,or Automobile-Product Design?). Im using UE version 4.26.2, choose Architecture template category (I'm architect engineer), follow and do the same your vid but my project does not work. I can see my project does not have 2 blueprints CB_CameraController and CB_PlayerController, is that the cause? That Blueprints are automatically generated when choosing template or created by yourself. If that blueprints effect to the result of project and created by yourself, pls help to show me the code of that blueprints. Many thanks!
@CultivationPath
@CultivationPath 3 жыл бұрын
This video is the third of a series of videos. Check this same Video title but with EP1 and EP2
@sohamacharya171
@sohamacharya171 3 жыл бұрын
He created it in previous episodes
@thegamedevchannel3063
@thegamedevchannel3063 3 жыл бұрын
Thanks for responding on my behalf!
@Super-Phoenix
@Super-Phoenix Жыл бұрын
Pouvez-vous me dire comment avec un blueprint je peux dire à un bâtiment de fabriquer une ressource et de la gérer
@NickFehlinger
@NickFehlinger Жыл бұрын
For people wanting a more coherant explaniation. kzfaq.info/get/bejne/qK2hn7WWq7XGiYU.html
@ChristianKullmann
@ChristianKullmann Жыл бұрын
Thanks for the link. The referred tutorial is really valuable addition and gives all the missing explanation
@Super-Phoenix
@Super-Phoenix Жыл бұрын
Bonjour pouvez-vous me dire comment je peux faire un système avec les blueprint pour mon bâtiments de ressources produisent des ressources et gérer les stocks également quand par exemple je veux acheter un bâtiment le bâtiment coûte 5 de béton je voudrais donc dire à mon bâtiments de ressources comme quoi j'utilise 5 de béton pour créer un bâtiment qui me le déduisent merci
@balsjenza
@balsjenza 3 жыл бұрын
Is it possible to do this for mobile?
@joshrinker1514
@joshrinker1514 2 ай бұрын
20:32 the game screen goes completely white.
@joeanrachelmiller6529
@joeanrachelmiller6529 Жыл бұрын
if only navmesh came with the infinite extent option
@sfm_pakic3527
@sfm_pakic3527 10 ай бұрын
this is pretty big
@coffeediction
@coffeediction 2 жыл бұрын
didnt work, thanks anyways
@hyunsulee1212
@hyunsulee1212 11 ай бұрын
If you dont have mouse cursor? look 00:40
@a123b123c123d123c123
@a123b123c123d123c123 2 жыл бұрын
In programming it's "color" not "colour".
@PowPow000
@PowPow000 Жыл бұрын
Hi, I really enjoyed this. Is there a simple mod to this to make the left mouse button apply 1 material and the right mouse button apply a different material? Thanks,
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4 МЛН
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 36 МЛН
白天使选错惹黑天使生气。#天使 #小丑女
00:31
天使夫妇
Рет қаралды 14 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
Unreal Engine Interaction - Click on actor tutorial
13:22
Gisli's game development channel
Рет қаралды 31 М.
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
I Optimised My Game Engine Up To 12000 FPS
11:58
Vercidium
Рет қаралды 649 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 706 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,5 МЛН
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,6 МЛН
Learning Unreal Engine in One Month to make a Game!
15:25
Will Hess
Рет қаралды 73 М.
Для сухариков есть применение получше!
0:32
А на даче жизнь иначе!
Рет қаралды 3,9 МЛН
ГОЛОДЕН ДО СКРОРОСТИ 🏎️💨
1:00
КиноХост
Рет қаралды 774 М.
Чаще радуйте матерей ❤️
0:38
Dragon Нургелды 🐉
Рет қаралды 660 М.
super Beautiful 3D wall paintings 😂😍👍  #shorts_video
0:20