Unity Scripting: Getters and Setters in Javascript and C# @unitycookie
Unity Scripting: Getters and Setters in Javascript and C#  @unitycookie
Uploaded April 2013 | Updated September 2026, 2 weeks ago
cgcookie.com/unity/2012/01/18/tip-getters-and-setters-in-javascript-and-c


In this Unity Scripting video tutorial I explain the use of 'getter' and 'setter' methods for the C# and Javascript flavors of Unityscript. They can be used to facilitate the reading and setting of another object's properties in a transparent way, while still offering an extra layer of control in the object who's property is being changed.

The C# example starts at 1:10; the Javascript one at 9:15.
Unity Scripting: Getters and Setters in Javascript and C#Additional Maps - 8 Theory - Noob to Pro Unity Shader Writing in Unity 4 beginnerUnity Tower Defense Part 9 - TanksAdditional Maps - 8 Practical - Noob to Pro Unity Shader Writing in Unity 4 beginnerUnity: 3.5 New Release OverviewMultiple Lights - 5 Theory - Noob to Pro Unity Shader Writing in Unity 4 beginnerFundamentals  - 1 Introduction - Noob to Pro Unity Shader Writing in Unity 4 Beginnerunity crashcourse 01 02
CG Cookie - Unity Training |

Unity Scripting: Getters and Setters in Javascript and C#

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER