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.
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.






