> For the complete documentation index, see [llms.txt](https://dilly.gitbook.io/dilly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dilly.gitbook.io/dilly/control-rig/adding-variables-to-c++-control-rig-classes.md).

# Adding variables to C++ control rig classes

You can declare variables in control rig classes the same way you would in any blueprint class:

```cpp
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Control Rig")
bool bUseFullBodyIK = true;
```

You must ensure that "Show Inherited Variables" is enabled by clicking the gear icon in the MyBlueprint tab, otherwise the variables won't show up. If you've done this and still can't see the variable, restart the editor.

<figure><img src="https://3558733374-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPratlX5Y75g7mK9upu8G%2Fuploads%2FZTSOWuwrzEqp9hK6a0Dj%2FUntitled.png?alt=media&amp;token=a99a81d3-eeb5-4da5-9d3d-2a6989be09ad" alt=""><figcaption></figcaption></figure>
