Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReadOnly

Indicates if the property should generate a setter.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Property
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.ScriptingModule
public bool ReadOnly { get; set; }

Remarks

Setting this to
false
will not generate a setter for a readonly field or a get only property.