Making A MOBA Character in 2023 - #4: ABILITY INDICATORS (Unity 2023 Tutorial)

preview_player
Показать описание
In this video we will create the indicators for our 3 abilities. Having them enable and disable once you press your desired ability and when you press the left mouse button it will disable itself. Same goes if you press another ability, it will hide the first ability and show the indicator for the ability you just pressed.

Follow my Socials:
Discord DM: VinnyDev6490

0:00 - Intro
0:21 - Download Indicators
1:05 - Ability 1 Canvas
2:22 - Ability 2 Canvas
3:47 - Ability 3 Canvas
4:18 - Editing Abilities Script
11:13 - Final Touch Ups
12:02 - Outro

#UnityTutorial #Unity2022 #UnityMOBA
Рекомендации по теме
Комментарии
Автор

Your tutorials have improved a lot. Congrats and thank you m8. ;)

luispadilla
Автор

Thank you! please continue making the MOBA series!

FlotzOnYou
Автор

Oh man i was struggling to create the ability 2 by my self and then found this tutorial which is great but the ability 2 is still not working for me even if i exactly copied the code. I'm not sure what I am doing wrong.

EnemyOTS
Автор

Thanks for the Video and the idea of using canvas for this. Do you have any idea how this works on bumpy terrain? I like to draw a line that "Cuts" the terrain to visualize the direction.

krs
Автор

please make spawm vfx effect skill with ABILITY INDICATORS

python
Автор

Could you just have one canvas with all the images on it and just enable and disable those? whats the point to add all those canvases? if there is future meaning to what your doing, you should explain it while youre going thought it. Like are the induvial canvases going to be used for somthing later on?

OneTime_
Автор

I don't see you turning off "Range Indicator Image " nor do I see any interference in inspector. so how to make it disappear when running the program

kienvangvan
Автор

Thanks for the MOBA series! I have a question about the implementation of vision. Do you know how to light only the parts where allay players and minions are?

just-jiu
Автор

Great tutorial, I have one problem though. When I have the ability indicators up, it follows the mouse fine but if I right click it snaps to a different location for 1 frame and then comes back to my mouse, do you know how to fix this? Thanks!

EDIT: My Unity game crashed like 30 seconds later, it took a restart and 30 mins to open, and now it's fixed. Don't really know what happened lol

porogragas
Автор

does this tutorial work on mobile? Thanks.

quoctrungtran
Автор

The link for the assets is not in the description

nathanhacault
Автор

Hey man, great video ! This assets is free to use in commercial project ?

RaphaelMaciel-dglz
Автор

Sorry, I had to downvote, even though I have not finished the video yet:
- The images should have Power-of-two scale (e.g. instead of 1000px 1024px, I knew newer unity versions do that for you under the hood, but still)
- The canvas scale of 3 is super arbitrary, same for width/height set to 10. Instead I think it'd be a better approach to go the the image and set the "Pixel per Unit" value to the width of the image itself (e.g. 1000 or 1024). So the image will be exactly 1 unit range in the world. That way it should be easier to scale the image according to the ability range (something you completely skipped!?)
- Instead of having the Abilitys basically hardcoded, your character should have a list of "abilities", where each ability can on it's own decide what kind of indicator it wants to activate. your approach feels super hardcoded. Just saying half of your code is basically copy and paste just with different numbers. that's not really DRY. 8:05 As soon as you intend to copy&paste a function, you should realize there is probably a better way (e.g. pass parameters into a function that disables all indicators and activates the parameter given one)
- Instead of the Raycast against the physics system you could use unitys "Plane" API, and check the mousepoint against a plane with world-up normal, thats probably better in terms of performance.

Imho it's important for a tutorial to teach best practices. Don't neglect best practices for the sake of "simplicity".

Soraphis