# EnabledRefRO<T>

> Stores a safe reference to a read-only component enable bit.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [IQueryTypeParameter](/engine/7000.0/script-reference/unity/entities/iquerytypeparameter.md)

```csharp
public readonly struct EnabledRefRO<T> : IQueryTypeParameter where T : unmanaged, IEnableableComponent
```

## Remarks

Do not store outside of stack

## Constructors

| Constructor                                                                                                        | Description                                                         |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| [EnabledRefRO\`1(Unity.Entities.SafeBitRef)](/engine/7000.0/script-reference/unity/entities/enabledrefro1/ctor.md) | Constructor for read-only enable reference to enableable component. |

## Properties

| Property                                                                           | Description                                                                         |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [IsValid](/engine/7000.0/script-reference/unity/entities/enabledrefro1/isvalid.md) | Property that returns true if the reference is valid, false otherwise.              |
| [ValueRO](/engine/7000.0/script-reference/unity/entities/enabledrefro1/valuero.md) | Property to get enabled value of this reference (true if enabled, false otherwise). |

## Static Properties

| Property                                                                     | Description                    |
| ---------------------------------------------------------------------------- | ------------------------------ |
| [Null](/engine/7000.0/script-reference/unity/entities/enabledrefro1/null.md) | Null value for this reference. |
