# Scriptables

Animal Controller and HAP is based on **Scriptable Architecture** framework, the asset uses **modular** features that you can add or remove to perfectly fit the unique needs of your projects.

All Scriptables Assets can be used you can reference them anywhere in your project, without having to worry about dependencies.&#x20;

They are based on  [Unite Austin 2017 - Game Architecture with Scriptable Objects](https://www.youtube.com/watch?v=raQ3iHhE_Kk\&t=2195s) by Ryan Ripple.

It synthesizes core unity objects like **float**, **integer** or **boolean** values.&#x20;

That way different scripts can share the same variable.&#x20;

E.g. The **Rider** Component shares the **CanDismount bool** variable with the Malbers Input Dismount Active variable.

![](/files/-MKc5y-TQ0kSGl2SEu_i)

![](/files/-MKc5eaZMKsYnX7bhGnw)

That way the Dismount Input will be enabled only when the Rider Set CanDismount to true.

{% hint style="success" %}
Sharing the same variables is very useful, but it also may create a problem with multiple characters using the same values.

To fix that you can choose if you can use a **constant** value or a scriptable **variable**
{% endhint %}

![](/files/-MKc725NsUGKuquTHib9)


---

# 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://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables.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.
