# ReadOnly

> Indicates if the property should generate a setter.

## Definition

* **Type:** Property
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.ScriptingModule

```csharp
public bool ReadOnly { get; set; }
```

### Remarks

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