# isReadOnly

> Returns true if the field is read only.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
[UxmlAttribute("readonly")]
public bool isReadOnly { get; set; }
```
