Property

A property is a member that provides a flexible mechanism to read, write, or compute the value of a private field. In uNode get accessor called Getter and set accessor called Setter if property does’t implement Getter and Setter the property are automatic converted to auto property which mean property can be get or set and has its own value just like variable.

  • Properties enable a class to expose a public way of getting and setting values, while hiding implementation or verification code.
  • A get property accessor is used to return the property value, and a set accessor is used to assign a new value.
  • The value keyword is used to define the value being assigned by the set accessor.
Modifier and Attribute is not supported in runtime, its only supported in generated script.
Was this helpful to you?