# FRAttributes

FRVariable attributes can be used as variable decorators which are displayed in the inspector.\
This can be quite handy if you want to create your own custom GUI drawing like a custom slider, button or dropdown. See the FRFloatRange attribute for example.

### \[Title]

```csharp
[Title("My Variable")]
public FRFloat floatVariable;
```

Draw a title on top of the variable.

### \[HelpBox]

```csharp
[HelpBox("This is a help message", MessageType.info)]
public FRFloat floatVariable;
```

Draw a helpbox on top of the variable.

### \[OpenURL]

```csharp
[OpenURL("Title", "http://www.google.com")]
public FRFloat floatVariable;
```

Draw a gui button which opens a webpage.

### \[Hide]

```csharp
[Hide]
public FRFloat floatVariable;
```

Hide the variable field in the inspector

### \[HideInNode]

```csharp
[HideInNode]
public FRFloat floatVariable;
```

Hide the variable field in the node.

### \[VariableGroup]

```csharp
[VariableGroup("Group")]
public FRString log;
[VariableGroup("Group")]
public FRString log2;
```

Combine multiple variables in foldable groups

### \[FRFloatRange]

```csharp
[FRFloatRange(0f, 10f)]
public FRFloat myFloat;
```

Draw a float field slider.

### \[FRIntRange]

```csharp
[FRIntRange(0f, 10f)]
public FRInt myInt;
```

Draw an int field slider.

### \[SceneObjectOnly]

```csharp
[SceneObjectOnly]
public FRGameObject prefab;
```

Allow only scene object references to be assigned.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://giantgrey.gitbook.io/flowreactor/api/frvariables/frattributes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
