文档

Unity Engine

Unity Engine

ReadOnly

Indicates if the property should generate a setter.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

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