# FRVariables

### Namespace

```csharp
using FlowReactor;
```

### Draw

```csharp
public virtual void Draw(bool _allowSceneObject, object[] _attributes)
// used to draw the variable in a blackboard list
public virtual void Draw(Rect rect)
```

Used to draw the variable in inspector

**Example**

```csharp
#if UNITY_EDITOR
public override void Draw(bool _allowSceneObject, object[] _attributes)
{

	if (_attributes != null)
	{
		var _att = _attributes.FirstOrDefault(x => x.GetType() == typeof(FRFloatRange));

		if (_att != null)
		{
			var _a = _att as FRFloatRange;
			Value = EditorGUILayout.Slider(Value, _a.min, _a.max);
		}
		else
		{
			Value = EditorGUILayout.FloatField(Value);
		}
	}
	else
	{
		Value = EditorGUILayout.FloatField(Value);
	}
}

public override void Draw(Rect _rect)
{
    Value = EditorGUI.FloatField(_rect, Value);
}
#endif
```


---

# 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.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.
