# SetActivePseudoState(bool)

> Sets whether or not this element is displayed as being active.

## Definition

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

```csharp
public void SetActivePseudoState(bool value)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Remarks

If set to true, this element will match the `:active` pseudo-class.

Some elements, like the [Button](/engine/6000.5/script-reference/unityengine/uielements/button.md), use this method internally to reflect changes to their internal state. Calling this method on those elements may have no effect or only result in a temporary change in their displayed styles.
