Public vs Private Fields (Unity Tip)

Published: 09 October 2020
on channel: Ketra Games
1,592
66

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.


Watch video Public vs Private Fields (Unity Tip) online, duration hours minute second in high quality that is uploaded to the channel Ketra Games 09 October 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,592 times and liked it 66 visitors.