Build Awesome Easy to Use Tools with Custom Editors!

  Рет қаралды 41,402

Code Monkey

Code Monkey

4 жыл бұрын

🌍 Monetize your games with AudioMob bit.ly/audiomob-codemonkey
✅ Get the Project files and Utilities at unitycodemonkey.com/video.php...
👇
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!
✅ Add to your Wishlist! 👉 store.steampowered.com/app/12...
Sponsored by AudioMob
Mask your UI with Awesome Custom Animated Shapes!
• Mask your UI with Awes...
Simple Chat Bubble in Unity (Chat, NPC, Multiplayer)
• Simple Chat Bubble in ...
Modular Character System in Unity (Move, Attack, AI, Pathfinding)
• Modular Character Syst...
Simple Key Door System in Unity
• Simple Key Door System...
4 Ways to Interact with Doors in Unity
• 4 Ways to Interact wit...
If you have any questions post them in the comments and I'll do my best to answer them.
🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
See you next time!
📍 Support on Patreon / unitycodemonkey
🤖 Join the Community Discord / discord
📦 Grab the Game Bundle at unitycodemonkey.com/gameBundl...
📝 Get the Code Monkey Utilities at unitycodemonkey.com/utils.php
#unitytutorial #unity3d #unity2d
--------------------------------------------------------------------
Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.
I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Website: unitycodemonkey.com/
- Twitter: / unitycodemonkey
- Facebook: / unitycodemonkey

Пікірлер: 85
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
🌍 Monetize your games with AudioMob bit.ly/audiomob-codemonkey ❤️ Using this sponsored link helps support the channel
@oscarfacecamplz8264
@oscarfacecamplz8264 4 жыл бұрын
Code Monkey How to make GameHandler
@arcday4281
@arcday4281 4 жыл бұрын
Hi! The question is not on topic. Great developer please share your wise advice. How do I get the player to attack the enemy in turn in a" 2D " platformer? For example: 3 enemies approached from the same side at the same distance. How do I make sure that the damage was not three at the same time? One at a time. (they are on the same " enemy layer") Sorry for my English )
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
@@arcday4281 I covered a Turn Based Combat System here kzfaq.info/get/bejne/ZreFY9yHlam9hGg.html
@arcday4281
@arcday4281 4 жыл бұрын
@@CodeMonkeyUnity You probably always have a lot of work to produce videos and training materials in steam. Thank you for taking the time to respond ...
@realmcenter
@realmcenter 4 жыл бұрын
I just want to say I’ve learned almost everything I know through you alone
@JTAGames
@JTAGames 4 жыл бұрын
One of the best places to learn
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Awesome! I'm glad you've found the videos helpful!
@chikato7106
@chikato7106 4 жыл бұрын
Same.. Except I feel retarded because I just can't come up with this on my own
@MaxAndersonFilms
@MaxAndersonFilms 4 жыл бұрын
You've taken a huge weight off my mind, Code 🐒! There's some stuff I want to do in my current game that I had no idea how I would figure it out. But the custom editor solution here will get me 90% there. Thanks so much!
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Awesome, I'm glad to hear it! Custom tools can be a huge timesaver!
@LivingToPay
@LivingToPay 4 жыл бұрын
This really pumped up my dev skills! Keep awesome Code Monkey! Thanks for improving this community
@deadly_artist
@deadly_artist 4 жыл бұрын
Recently you upload one after another video that’s really interesting, hard to find another video for, and better than any of those that you do find. Personally it was only possible for me to get into ECS due to the resources you provided. Highly appreciated!
@AmanKumar-tu2og
@AmanKumar-tu2og 4 жыл бұрын
Thanks a ton for this!! I learned a lot about editor tools from this.
@glalkia713
@glalkia713 4 жыл бұрын
Man! Really love your work! Stay blessed!
@tostpl8258
@tostpl8258 4 жыл бұрын
Ohhhh thank you. I always love tools that helps me setup up some things in inspector. Will you create a videos about custom editor window?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yeah that's one thing I'd love to research, should be pretty similar to this.
@tostpl8258
@tostpl8258 4 жыл бұрын
@@CodeMonkeyUnity you just made me go YES :)
@sagiziv927
@sagiziv927 4 жыл бұрын
Great video and explanation. Just one recommendation, mixing the editor code in a runtime code makes a lot of mess IMO. You should use partial class to separate that, so the code would be simpler to read and more organized.
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yup I agree, separating them into two files would be easier to understand as the project grows.
@--.._..--...--.._..--...--....
@--.._..--...--.._..--...--.... 9 ай бұрын
​@@CodeMonkeyUnitynot only that, I made a custom gizmo of an arrow pointing in a Serialized Vector3 position. This class was useful for many objects, not only the origin :)
@vuqarrahimli
@vuqarrahimli 4 жыл бұрын
Hey, Code Monkey, first of all, thanks a lot for the great tutorials, you are really doing a great job! I have been watching your tuts and not just copy paste them, but trying really hard to understand whats going on, trying to understand the logic and code work behind them, I'm not great with the programming language itself yet, I'm having a hard time sometimes. I wanted to ask if what I am doing is the right way to improve myself? Did you start that way too? Thanks a lot in advance :)
@vuqarrahimli
@vuqarrahimli 4 жыл бұрын
I hope that like means YES :D
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yup definitely, the more code you write the better you will become. Even if you come across a more advanced video try to continue watching, it will help expose you to more advanced concepts faster. All it takes is time and consistent practice, I've been writing code for 20 years now. So just keep at it, keep making prototypes and trying lots of different things and over time everything will start to click!
@lordkakabel76
@lordkakabel76 4 жыл бұрын
This...is amazing!
@cossinle
@cossinle 4 жыл бұрын
When I first saw your ad on KZfaq I knew I had to subscribe. Thank you very much :D
@ThomasChen-ur2gt
@ThomasChen-ur2gt 3 жыл бұрын
your videos are the best
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Have you ever made a custom editor? They can be immensely useful! 🌍 Code Monkey on Steam! 👍 Interactive Tutorials, Complete Games and More! ✅ Add to your Wishlist! 👉 store.steampowered.com/app/1294220/
@chrisxxx4714
@chrisxxx4714 2 жыл бұрын
i would love a complete course on custom tools and editor code to prepare for a job as a "tool developer"
@123sendodo4
@123sendodo4 4 жыл бұрын
A surprise to be sure! But a welcome one
@r1pfake521
@r1pfake521 4 жыл бұрын
Maybe a future video about a custom tree view editor, with a custom node model? (I mean in the editor, not ingame)
4 жыл бұрын
I know that is more complex and you said you were trying to make it as simple as possible, however, at 6:20 instead of using a switch to check the type of the parameter, because in both cases you are invoking the same method, you could have opted for an interface, as you showed in a video before.
@Persegan
@Persegan 2 жыл бұрын
2 years late, but I was wondering, even with an interface, wouldn't the switch be needed still to know what class to call the method from? Or is there a way to bypass that?
@echo9dev
@echo9dev 3 жыл бұрын
Can you make a turtorial on how to add adds to you game? Ik planning on putting a game on android but I need some revenue I next change for the price for a google dev console
@Totumfacky
@Totumfacky 3 жыл бұрын
Is it doable in Odin Inspector? It should be easier to make it all in OI, is it proper tool for this task?
@geri4367
@geri4367 4 жыл бұрын
I believe that the Unity Handles Line is aliased and the other ones are not
@vikramsindhu5901
@vikramsindhu5901 Жыл бұрын
Hi, i am a bit confused about something, will it be possible to do this if the CustonAction does not inherit from monobehaviour Please help anyone!
@lightboom6140
@lightboom6140 4 жыл бұрын
Hey! Why did you shorten your intro? I think that new one looks cool.
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Since the video has a sponsor I used the short one to not take too long to get to the content of the video.
@aeliusdawn
@aeliusdawn 3 жыл бұрын
You are a bold one
@LloydVincent11
@LloydVincent11 4 жыл бұрын
Useful as an example of how to do custom editors and draw things in scene view. However, this use case is much better suited for Timeline, which was created by Unity pretty much exactly for this sort of situation. Your implementation would be a nightmare to manage at scale. (Imagine 20+ types of actions and sequences with hundreds of steps, your scene would be nothing but a jumble of lines and labels)
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
I haven't used timeline so I'm not sure how extensible it is. Here I liked how I could define whatever fields I wanted and do anything within a function. Can timeline be used to interact with a custom script to tell it to go to a Vector3? Can it call a static function on my ChatBubble class and pass in a string parameter? It's definitely one Unity feature that I'd love to research
@LloydVincent11
@LloydVincent11 4 жыл бұрын
@@CodeMonkeyUnity Absolutely. In Timeline you create custom tracks that do whatever you want them to do. Timeline has a bit of a learning curve, but it's super-powerful. (Sorry, I thought I replied 5 days ago but apparently I forgot to hit the submit button or something)
@tylerbarwin3000
@tylerbarwin3000 4 жыл бұрын
Yasssssss
@dragon_levelup
@dragon_levelup 29 күн бұрын
Do you know any tool/package to get info about the scene's objects? I have a scene that's 150 MB, but can't find objects that take so much space. Do you have any suggestions?
@CodeMonkeyUnity
@CodeMonkeyUnity 28 күн бұрын
Hmm not sure if there's any tool for that, maybe make a build with just that one scene and look in the build size log docs.unity3d.com/Manual/ReducingFilesize.html Keep in mind it might not necessarily be in the scene itself. Any assets referenced by any scripts in the scene will be included in the build. So if you have a game object with a simple script and that script has a reference to a scriptable object that in itself has a reference to a really heavy texture then that texture is included despite not being directly referenced in the build.
@dragon_levelup
@dragon_levelup 28 күн бұрын
Thanks for the reply. In one of my project I had scene with 330 MB. In the scene itself there weren't that much objects. As far as I know the size of asset (model, or texture) doesn't affect size of scene that much. I thought it was because of particles, so I copied the scene and deleted all particles, The scene's size became 18 MB. This means, particles take so much space. That's why I would like to find objects that take so much space in Scene to make them Prefab.
@CodeMonkeyUnity
@CodeMonkeyUnity 26 күн бұрын
Usually it's either Textures or Sound, so if you have some 4k textures they can easily use up hundreds of megabytes
@mateuszhyps5732
@mateuszhyps5732 4 жыл бұрын
Hello could you do a video with opening doors/chests using a mini-game?? Something gta5 did with hacking or skyrim with picklocking. I know it might be really complex but Id really used at least some guidence. Even the simplest thing would do a trick like a click certain buttons in a right order or simple puzzle game in a small window on current scene. I have a project to school and cant find any solutions on forums you would really save me with this ;_;
@chikato7106
@chikato7106 4 жыл бұрын
Watch his first video on doors... Hugo covers that. Does all the code for you...but definitely dont copy and paste... actually learn from these videos
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yup I've done 2 videos covering doors and general interaction with objects kzfaq.info/get/bejne/oNV7epSC0b_ao3k.html kzfaq.info/get/bejne/eLBklbF3tduoh3U.html
@SnakeEngine
@SnakeEngine 2 жыл бұрын
Is it possilbe to make the custom editor tools as standalone apps?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
What do you mean by "standalone apps" ? Run them outside the Unity Editor? No, they are Editor tools to they need Unity to work.
@SnakeEngine
@SnakeEngine 2 жыл бұрын
@@CodeMonkeyUnity Ok, thanks. That's a bit unfortunate. Imagine you want to create a level editor that is also used by the players. So you can't use Editor Scripting for this but have to make a non-game Unity app instead, I guess.
@michaelzhao5873
@michaelzhao5873 4 жыл бұрын
Dam I’m gonna use this tutorial for my devlogs on my channel! Thanks
@philipkaltsounis8097
@philipkaltsounis8097 2 жыл бұрын
I'm creating a custom inspector but whenerver I quit from Unity, the values of the inspector change to default. Do you have any idea how to fix this?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
Sounds like you're not applying the changes to the serialized object?
@philipkaltsounis8097
@philipkaltsounis8097 2 жыл бұрын
@@CodeMonkeyUnity ok, how do I do that? edit: I found the serializedObject thing but couldn't get it to work. The way I solved it was make the variable public Now I'll just need to find a way to serialize class fields instead of just object field
@krishsingaria7906
@krishsingaria7906 4 жыл бұрын
Can u make tutorial on UNITY'S PARTICLE SYSTEM
@r1pfake521
@r1pfake521 4 жыл бұрын
I watched some particle system videos (I think he even has one on this channel) and it still can't create cool effects, I mean I understand how the particle system works, but I just don't know how to create them on my own. I think it's one of these things that you can't learn by watching videos and instead just have to try and experiment or maybe im just too dumb.
@krishsingaria7906
@krishsingaria7906 4 жыл бұрын
@@r1pfake521 I have also watched some but sitill I make wired looking praticals
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
I covered a deep dive on one of the official Unity VFX Graph effects, seeing how an effect is done can help you understand how the tool works. kzfaq.info/get/bejne/p5ejoJVhzJ7doXk.html
@mwp804
@mwp804 4 жыл бұрын
All The GameObjects Are purple for me. How Do I Fix This?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Either they don't have a material or you have a shader error.
@mwp804
@mwp804 4 жыл бұрын
@@CodeMonkeyUnity ok thanks!
@AbdurRahman-bg8zu
@AbdurRahman-bg8zu 4 жыл бұрын
A very special Thanks from INDIA.....!!!! [ A little help required....!!! ] Here is the thing: I request a tutorial for real-time level editor (i.e in-game level editing) for isometric 2d game Please make a tutorial on it, so that one can make a game in which they can make levels that uses game prefabs and play & share their creation (levels) {if someone uses the technique.} I needed an In-game Isometric type level editor for my game but I'm just a beginner and I don't know how to achieve it. It would be great video for others too..!!!!! whoever sees this like if you agree...! and if (Author) { please give us the tutorial for it.... }
@pouja
@pouja 4 жыл бұрын
Why not use Timeline for this?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
The goal is to learn how to create editor tools which you can then apply to any scenario like making a level building tool or managing your AI with helpful visual gizmos. The cutscene is merely a simple use case. If you wanted specifically to create a cutscene then yes Timeline would be the better approach.
@pouja
@pouja 4 жыл бұрын
@@CodeMonkeyUnity Ah sorry then I misunderstood the goal of your video, thank you for explaining!
@Totumfacky
@Totumfacky 3 жыл бұрын
THIS SHOULD BE DONE IN XML! uhhh sorry for screaming :) but it is sooo obvious!
@simonbauer83
@simonbauer83 4 жыл бұрын
"Hello there"
@banalban8149
@banalban8149 4 жыл бұрын
General Kenobi
@a_soulspark
@a_soulspark 4 жыл бұрын
you are a bold one
@nlk294
@nlk294 Жыл бұрын
0:22 no. god pls god no. noooo!
@inhabitantwaps3qs803
@inhabitantwaps3qs803 4 жыл бұрын
anyone watching in 2019
Transparent Unity App! (Overlay, Assistant, Particles)
16:42
Code Monkey
Рет қаралды 58 М.
Easy Editor Windows in Unity with Serialized Properties
10:57
Game Dev Guide
Рет қаралды 100 М.
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 18 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 135 МЛН
How to do Camera Shake with Cinemachine!
7:35
Code Monkey
Рет қаралды 86 М.
What are Events? (C# Basics)
15:05
Code Monkey
Рет қаралды 380 М.
Get A Good Handle With A Custom Editor Tool In Unity
13:43
Warped Imagination
Рет қаралды 3,8 М.
Создаём свой инструмент для Unity 3D
15:52
Emerald Powder
Рет қаралды 41 М.
What are Interfaces? (C# Basics)
13:54
Code Monkey
Рет қаралды 203 М.
Steam EXPERT teaches you Game Marketing for SUCCESS!
52:22
Code Monkey
Рет қаралды 39 М.
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН