# delegatesFocus

> Whether the element delegates the focus to its children.

## Definition

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

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

### Remarks

If the element delegates its focus, when it becomes focused, one of its child or recursive child elements is selected to receive focus in its place.

The element that receives the focus cannot be chosen manually. Instead, it's determined automatically using a set of rules.

The chosen element will be the first child or recursive child that

* can be [focused](/engine/6000.7/script-reference/unityengine/uielements/focusable/cangrabfocus.md),

* does not delegate its own focus,

* is not the child or recursive child of a content container or of another element that delegates focus, and

* is part of the [focus ring](/engine/6000.7/script-reference/unityengine/uielements/ifocusring.md) navigation sequence.

For more information, refer to [Focus system in UI Toolkit](/engine/6000.7/manual/uitoolkits/uielements/uie-events/uie-focus-order.md).

Additional Resources: [\_contentContainer](/engine/6000.7/script-reference/unityengine/uielements/visualelement/contentcontainer.md), [IFocusRing](/engine/6000.7/script-reference/unityengine/uielements/ifocusring.md)
