Uploaded December 2025 | Updated September 2026, 2 days ago
Hello fantastic people!
In this video I show how to create a simple but effective enemy AI for a 3D game in Unity.
Even though this tutorial is horror-themed, the same techniques work perfectly for many other types of games.
We build an enemy that:
- patrols between points
- detects and follows the player
- attacks when in range
- returns to patrolling when the player is lost
The tutorial uses:
- NavMesh & NavMeshAgent
- Animator with simple state transitions
- Raycasts for line of sight
- A lightweight state-based approach
This is not an overengineered solution. It’s meant to be clear, practical, and easy to expand.
If you find this useful, please consider liking the video, subscribing, and leaving a comment – it really helps more people discover these tutorials.
And if you’re looking for a friendly, positive game dev community, feel free to join our Discord.
Have a fantastic day. Love you and bye bye.
00:00 Intro & Setup
03:45 Patrol
07:35 Chase
12:12 Attack
Hello fantastic people!
In this video I show how to create a simple but effective enemy AI for a 3D game in Unity.
Even though this tutorial is horror-themed, the same techniques work perfectly for many other types of games.
We build an enemy that:
- patrols between points
- detects and follows the player
- attacks when in range
- returns to patrolling when the player is lost
The tutorial uses:
- NavMesh & NavMeshAgent
- Animator with simple state transitions
- Raycasts for line of sight
- A lightweight state-based approach
This is not an overengineered solution. It’s meant to be clear, practical, and easy to expand.
If you find this useful, please consider liking the video, subscribing, and leaving a comment – it really helps more people discover these tutorials.
And if you’re looking for a friendly, positive game dev community, feel free to join our Discord.
Have a fantastic day. Love you and bye bye.
00:00 Intro & Setup
03:45 Patrol
07:35 Chase
12:12 Attack







![Unity Scripting: Improve Productivity by using Attributes
In this episode well learn how to use attributes provided to us by UnityEngine. I decided to focus on the ones I am using the most, please bear in mind that there are many more and it is definitely worth having a look at the official Unity docs to learn more :).
Got any questions? Join our discord:
https://discord.gg/hrZF93sCkc
Previous episode about Events:
https://www.youtube.com/watch?v=AGGmnVIhHvc
The whole Unity Scripting playlist:
https://www.youtube.com/watch?v=DWj_mPUtuqw&list=PLZyYVAihdXAhjdUy-6BVSCh4Qyjh34iiv
#UnityScripting #Attributes #CSharp
00:00 Intro
00:06 What are attributes
00:23 Setup
00:30 [RequireComponent]
01:15 [Header]
01:25 [Tooltip]
01:32 [Space]
01:44 [Range]
01:56 [HideInInspector]
02:09 [SerializeField]
02:24 [ContextMenu]
03:05 [RuntimeInitializeOnLoadMethod] Unity Scripting: Improve Productivity by using Attributes](https://i.ytimg.com/vi/oDLc-RK17y0/mqdefault.jpg)

![Setup URP for 2D Game in 1MIN! Unity tutorial [New Version in the Description]
In this very short tutorial we will learn how to convert regular project to URP using the old way. Very soon I will release a video about how to do it in Unity 2021 LTS so please stay tunned :). Love you!
https://youtu.be/BCR2xQ7jWMU - New Version - Unity 2021 LTS Setup URP for 2D Game in 1MIN! Unity tutorial [New Version in the Description]](https://i.ytimg.com/vi/pjpcitJim04/mqdefault.jpg)
