У нас вы можете посмотреть бесплатно Encapsulation Explained in Unity C# (Access Modifiers and Properties) | OOP Tutorial Series #2 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This tutorial series is for those who are experienced with Unity's & C#'s basics and are willing to know about the principles of object-oriented programming. All scripts and project contents used in the tutorial can be found on GitHub: https://github.com/danqzq/unity-princ... In this video you will learn about access modifiers that are available in C#, as well as what is encapsulation, what are properties, getters and setters, and why you should not mark every field as "public"! More on "protected internal": https://docs.microsoft.com/en-us/dotn... More on "private protected:" https://docs.microsoft.com/en-us/dotn... 00:00 - Intro 00:18 - What are Access Modifiers in C#? 01:03 - Explaining more about MonoBehaviour derived classes 02:05 - "public" modifier 03:09 - "private" modifier 04:29 - "protected" modifier 05:08 - "internal" modifier 06:12 - "protected internal" & "private protected" modifiers 06:59 - What is Encapsulation? 07:36 - What are properties in C#? 11:32 - What are auto-properties in C#? 12:45 - Using auto-properties as public fields to hide them from the inspector 13:25 - Validating and encapsulating fields using properties. 17:35 - Using the [SerializeField] attribute to expose fields to the inspector 19:21 - Outro If you're interested in more content like this, be sure to subscribe. If you want to be a part of my community, you can join my Discord server too: / discord Thumbnail by Pxl Dev, check out his YouTube channel: / @pxldev Music #1: Evan King - y o i n k Music #2: Evan King - r o b o Music #3: Evan King - a p p e a r / @contextsensitive https://contextsensitive.bandcamp.com/ Music #4: LAKEY INSPIRED - The Process / lakeyinspired