Тёмный

(02) Stealth Game - Custom Behaviour Editor (Unity, C#) 

AJTech
Подписаться 8 тыс.
Просмотров 3,7 тыс.
50% 1

Ever wanted to make an epic stealth game from scratch and learn while you do so? Well... you've come to the right place, today we'll be starting an editor system which will allow us to use nodes to build our NPC's behaviour which will allow us to model complex behaviour through diagrams. We will be writing our own editor code which is a necessary skill to have in Unity.
____________________________________________________________
What is this about : 0:00 - 1:39
See the Finished Product of todays episode : 25:46 - 26:43
[More chapter markers down below]
The next part is even better and in order for you to see it you have to subscribe and tap that bell icon to be notified : ru-vid.com_...
If you want to see something next episode, comment down below but if you don't I have some great ideas myself ;)
Links :
----------------------------------------------------------------------------------------------------
[CURRENT] Part 2 Project (w/ all scripts + scenes): corneey.com/wsBMOl
[NEXT] Part 3 Video : • (03) Stealth Game - Ca...
[VIDEO] Previous Part (Character Controller) : • (01) Stealth Game - Cu...
If you enjoyed this video please COMMENT down bellow exactly what YOU would like to see in the next episode and I'll add it in and shout you out!! I need your contribution in order for me to make this channel bigger and better for everyone ;)
----------------------------------------------------------------------------------------------------
If you really did enjoy the content, help make this channel bigger by tapping that like button it would really help me out :) Thank you everyone for your support.
Parts of the Video :
What is this about : 0:00 - 1:39
Creating the window : 1:48 - 4:06
Explaining Repaint Method : 4:29 - 5:12
Writing the Node Class : 5:23 - 8:34
Drawing Header : 8:41 - 15:27
Drawing Nodes : 15:27 - 19:01
Dragging Node: 19:09 - 25:39
Finished Product : 25:46 - 26:43
- Series Description -
This series was built to be an entertaining way of learning Unity while making an incredible game, you will learn how to make complex AI behaviour and write complex scripts such as custom character controllers w/ custom handled collision and slopes and Editor Code to control behaviour. All being essential skills to being a Pro Unity Developer.
- Video Description -
This video is mainly focused on setting up an Editor Window and drawing some nodes on the screen to give you a perfect sense of what is to come, it is just a basic editor but soon once we start adding content like Field of View we can start adding those features as nodes and then link that up with other features and make an awesome game, I'm having heaps of fun creating this editor and I hope you will too :)

Игры

Опубликовано:

 

25 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@pranavbadrinathan6693
@pranavbadrinathan6693 3 года назад
I feel like I found a lost gold nugget in youtube. Love this series, even though it is 2 years old!
@dimirionpro8451
@dimirionpro8451 6 лет назад
Thank you it's great idea!
@batchprogrammer108
@batchprogrammer108 6 лет назад
Thank you! I will be building upon this video soon in my future extension of this series :)
@X_Daniel466
@X_Daniel466 6 лет назад
Thank you for your effort on these videos. node editor sounds really good will you be building on top of this?
@batchprogrammer108
@batchprogrammer108 6 лет назад
DizzyGame Studio Yes of course! Once I add a few features like pathfinding and shooting I should be able to add all the features into the node editor :)
@X_Daniel466
@X_Daniel466 6 лет назад
Cool! Looking forward to it!
@zandrewsonnemaker5579
@zandrewsonnemaker5579 6 лет назад
Hey I know this is going to sound newbish but I can't figure out why my nodes aren't popping up into the node editor, I have my folders set up exactly the way you do (Node Editor/Editor && Node Editor/Classes) but my node editor script isn't finding node in this context and obviously the nodes aren't showing up on button press. I keep looking over the code and ours look identical, so I'm not totally sure what the issue is. Please help.
@batchprogrammer108
@batchprogrammer108 6 лет назад
Are you using the right base class for each script, are you deriving from MonoBehaviour still, or are you forgetting to derive from the proper base classes like shown in the video? You could download the project files from the description and see if they are fully identical if that's not the problem :)
@zandrewsonnemaker5579
@zandrewsonnemaker5579 6 лет назад
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class Node {} that's how my Node script is called using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class NodeEditor : EditorWindow {} that's the node editor. I am noticing that in the MonoDevelop solution window Classes and Editor folders don't show up next to each other and exist in separate hierarchies, should that be happening? One's in Assembly-CSharp/NodeEditor/Classes/Node.cs the other is in Assembly-CSharp-Editor/NodeEditor/Editor/NodeEditor.cs Editor and Classes don't appear next to each other and I'm not sure if that's part of the issue. thanks for the quick response you were so fast btw I had to refresh youtube haha
@batchprogrammer108
@batchprogrammer108 6 лет назад
I'm afraid I have to admit I actually don't know what is going on here... It should be working, very weird. Can you copy paste the entire error log in so I can take a closer look?
@zandrewsonnemaker5579
@zandrewsonnemaker5579 6 лет назад
It's pretty strange, it seems to have spontaneously started working. I recompiled, closed and opened, rearranged the hierarchy, then rearranged it back to how it originally was, still messed up. Then you reply, I go to screencap it for you, magically the issue isn't there anymore. I hate those phantom errors, I remember the first couple of weeks I was trying to make Unity stuff I started getting errors like that, pretty discouraging makes you feel like magic is making things happen rather than your code :O anyways thanks again, I'm really happy to be learning how to make my own tools in Unity, node editors == thebomb.com (don't click that link I don't know what it is, I was just using a euphemism)
@batchprogrammer108
@batchprogrammer108 6 лет назад
Haha I know how you feel! I get those errors sometimes as well it's very irritating. Glad it was solved tho :) Making tools in Unity is extremely useful and will help you a lot! Enjoy :)
Далее
(05) Stealth Game - Inverse Kinematics pt1
1:08:54
Просмотров 3,9 тыс.
Выпускаем трек? #iribaby
00:14
Просмотров 494 тыс.
(06) Stealth Game - Inverse Kinematics pt2
23:18
Просмотров 1,4 тыс.
Creating a Scalable Saving System in Unity
9:00
Просмотров 5 тыс.
Optimizing our Realtime Fluid Simulation in Unity
11:27
(08) Stealth Game - TPS Aiming Over the Shoulder
28:18
(04) Stealth Game - Field of View (Unity, C#)
22:24
Просмотров 24 тыс.
Making a First Person Shooter with Thomas Brush!
4:50
Making Unity Games with Chat GPT [Editor Tool]
5:59
Просмотров 1,7 тыс.
Coding a Realtime Fluid Simulation in Unity
22:58
Просмотров 35 тыс.