Freedom Coding
Freedom Coding
  • Видео 158
  • Просмотров 274 917
Creating Finite State Machine In Unity || State Pattern
State pattern is very useful when it comes to creating enemy or player logic, where you need to manage multiple states and the transitions between them. Still, this pattern can be used in many more scenarios, where an object or group of objects can exist in different states. Using the state pattern, we will create an expandable finite state machine for enemies. To the state machine, you will be able to add as many states as you want while keeping the code readable and modifiable.
👍 Like and 🔔Subscribe for More Unity and C# Tutorials www.youtube.com/@UClTnTUyCeSu9tN8FNNoXMRg
Project files - www.patreon.com/posts/112112803
🌟 Support My Work and Unlock Exclusive Content! 🌟
👉 Patreon: www.patreo...
Просмотров: 830

Видео

The 50 Programming Terms You Should Know!
Просмотров 52021 час назад
Knowing programming terminology will greatly help you to communicate your thoughts with other programmers or teach them. In this video, I will teach you about the 50 not-so-common programming terms. These will include terms like pseudocode, legacy code, high and low-level languages, test-driven programming, pair programming, code tuning, dummy class, bootstrapper, hashmap, and more! 👍 Like and ...
Change Class Behavior At Runtime! || Strategy Pattern Tutorial
Просмотров 25014 дней назад
Discover the power of the Strategy Pattern in this tutorial! Learn how to make your code more flexible, reusable, and scalable by altering class behavior at runtime. This design pattern is perfect for scenarios where multiple algorithms or functions return the same type of output but achieve it in different ways. Using a simple missile-shooting example, I'll show you how to implement multiple s...
Reuse ANY Animation In Unity (Even Generic!)
Просмотров 37121 день назад
Creating your own animations can be hard, especially for characters. I will teach you how to retarget animations from one character to another, so you can download any animation and use it on any character. Retargeting humanoid animations is straightforward, but what about retargeting generic animations for non-humanoid characters? I will show you that as well using a handy package from the Ass...
Scalable Code With Decorator Pattern || Unity Tutorial
Просмотров 48028 дней назад
Did you ever need to extend or modify a class but adding more code into the class itself doesn't seem like the right solution? Meet the decorator pattern. Using it, you can change the behavior of a class by wrapping it inside the decorator. The decorator still acts as the class it is wrapping because they both implement a common interface. This way it is simple to add multiple accessories to we...
Better Dependency Injection For Unity - Extenject
Просмотров 528Месяц назад
Dependency injection is a powerful programming technique but using it on its own means you may need to supply many dependencies to your classes. Extenject, previously called Zenject, is a free dependency injection framework made specificaly for Unity that will make using dependency injection much more convenient. Advanced Extenject Tutorial - www.patreon.com/posts/110082337 Project files - www....
Create Complex Objects With Ease || Factory Method
Просмотров 474Месяц назад
Creating and initializing complex objects with the factory method pattern is simple. It encourages you to put all of the object creation logic into one script, so making modifications in the future is really simple as it is centralized in just one script. The class that creates the objects is also known as the creator and the created objects are known as products. The creator doesn't return jus...
MVC & Command Pattern In Action!
Просмотров 116Месяц назад
PATREON - www.patreon.com/posts/108659801 From now on, I will be making more in-depth tutorials on my Patreon as well. The topics will overlap with the videos I make here on RUclips, so you can expand you knowledge even further! 👍 Like and 🔔Subscribe for More Unity and C# Tutorials www.youtube.com/@UClTnTUyCeSu9tN8FNNoXMRg 🌟 Support My Work and Unlock Exclusive Content! 🌟 👉 Patreon: www.patreon...
Dependency Injection Is Simple & Powerful!
Просмотров 826Месяц назад
The term dependency injection sounds fancy but it is a really simple programming technique. Its aim is to improve testability and reusability of your code and decouple your classes. The main idea is that a class should not be creating or getting its own dependencies (other classes it depends on) but it should receive them from other classes. I will teach you about the 3 ways to achieve dependen...
Make Your Games Expandable WIth Command Pattern
Просмотров 9032 месяца назад
Command pattern will help you to make your games more expandable, separate your code into multiple pieces, and allow you to queue up commands, undo or redo them if you need to. This pattern consists of 5 elements. First is the client that creates the commands. Second is the invoker which executes the commands. Third is the command itself which can be an interface from which all the commands inh...
Make Your Singletons Generic! || Unity, C#
Просмотров 5552 месяца назад
Singleton is a class of which you have only one instance in a scene and is accessible everywhere. These can be especially useful for all kinds of managers. Each time you want to make script a singleton, you need to write quite a bit of code, so when creating multiple singletons, you would repeat a bunch of code. Generic singletons will solve this problem for you, as you will need to create the ...
Write Clean Code With MVC || Unity C# Tutorial
Просмотров 1,1 тыс.2 месяца назад
MVC is a commonly used software design pattern. Its main goal is to help you split your code into multiple pieces, where each piece has a single responsibility. The 3 main parts of MVC are: 1) model, that holds the data you want to work with 2) view, where you display the data to the user and 3) controller, where you have all the logic. MVC also encourages you to structure your code in a way th...
Cinemachine Timeline & Post-Processing || Unity Tutorial
Просмотров 4632 месяца назад
Cinemachine is a great Unity tool with which you can easily create the perfect character controllers for your games. But did you know that you can create awesome cutscenes for your games or whole movies with it as well? In this tutorial, I will cover how we can apply different post-processing effects to the cameras. I will also teach you about the tracked dolly camera, which goes really well to...
Perfect Camera For ANY Game - Unity CINEMACHINE
Просмотров 4883 месяца назад
Cinemachine is free Unity package that makes it easy for us to blend between cameras, add transitions, cutscenes and create any camera you can imagine. It will help you with your first person and third person character controllers, as you can simply follow or look at objects using the virtual cameras. You can apply noise, change FOV, add post-processing and a lot more for all of your cameras an...
Lost Fox Cub #3 || Unity Devlog
Просмотров 2843 месяца назад
To our game, I added two more puzzles to make the dungeons a bit more interesting. We will also be introducing new battle system, my friend has added new UI, skill tree and there are still many new features to come! What do you think about the game? Let me know down in the comments. 👍 Like and 🔔Subscribe for More Unity and C# Tutorials www.youtube.com/@UClTnTUyCeSu9tN8FNNoXMRg 🌟 Support My Work...
Simple Client Prediction & Reconciliation || Unity Netcode Tutorial
Просмотров 1,3 тыс.3 месяца назад
Simple Client Prediction & Reconciliation || Unity Netcode Tutorial
C# & LINQ: Write Less, Do More!
Просмотров 4303 месяца назад
C# & LINQ: Write Less, Do More!
Learn About These Unity C# Features NOW!
Просмотров 5724 месяца назад
Learn About These Unity C# Features NOW!
Animate With Ease Using DOTween || Unity Tutorial
Просмотров 2,4 тыс.4 месяца назад
Animate With Ease Using DOTween || Unity Tutorial
Lost Fox Cub #2 || Unity Devlog
Просмотров 1,4 тыс.4 месяца назад
Lost Fox Cub #2 || Unity Devlog
Let Players Compete || Unity Leaderboards Tutorial
Просмотров 8474 месяца назад
Let Players Compete || Unity Leaderboards Tutorial
Create Custom Lobbies With Ease || Unity Lobby Tutorial
Просмотров 1,7 тыс.5 месяцев назад
Create Custom Lobbies With Ease || Unity Lobby Tutorial
Group Players Together Easily || Unity Matchmaker Tutorial
Просмотров 8855 месяцев назад
Group Players Together Easily || Unity Matchmaker Tutorial
Game Server Hosting (MULTIPLAY) || Unity Tutorial
Просмотров 2,1 тыс.5 месяцев назад
Game Server Hosting (MULTIPLAY) || Unity Tutorial
Lost Fox Cub #1 || Unity Devlog
Просмотров 2475 месяцев назад
Lost Fox Cub #1 || Unity Devlog
Play Online Together Using Relay || Unity Tutorial
Просмотров 2,4 тыс.6 месяцев назад
Play Online Together Using Relay || Unity Tutorial
Server Authoritative Movement, Network Variables || Netcode For GameObjects #2
Просмотров 2,8 тыс.6 месяцев назад
Server Authoritative Movement, Network Variables || Netcode For GameObjects #2
Multiplayer In Unity Made Simple || Netcode For GameObjects #1
Просмотров 9 тыс.6 месяцев назад
Multiplayer In Unity Made Simple || Netcode For GameObjects #1
UI Toolkit VS Canvas - Performance & Comparison
Просмотров 2,7 тыс.6 месяцев назад
UI Toolkit VS Canvas - Performance & Comparison
How To Animate In UI TOOLKIT || Unity
Просмотров 2,8 тыс.7 месяцев назад
How To Animate In UI TOOLKIT || Unity