In this Unity quick tip we're going to look at how we can have private fields that can be set through the inspector.
If you prefer written instructions you can find a link to the text version here - https://www.ketra-games.com/2020/08/u....
Public Fields vs Private Fields in Unity
It's generally good practice to make fields private if we don't want them to be changed from other scripts, but doing this means they aren’t available to be set from the Inspector. In this tutorial we're going to look at how we can have the best of both worlds and have private fields that can be set through the inspector.
Смотрите видео Public vs Private Fields (Unity Tip) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Ketra Games 09 Октябрь 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 1,592 раз и оно понравилось 66 посетителям.