Search Results for

    Show / Hide Table of Contents

    No Such Studio's Variables Asset

    No Such Studio: Variables is a beginner-friendly package for Unity. It allows you to create global variables that are accessible from any script.

    • No more looking for GameObjects and their Components to look for shared variables.
    • A simple observable pattern to receive callbacks when variables change.

    💡 Why No Such Studio: Variables?

    ⚡ Set and Get Global Variables from Any Script

    This asset makes it easy to create global variables from Unity Editor UI. You can set and get variables using the following two static methods:

    // get player score
    var playerScore = VariablesService.GetVariables("player_score");
    
    // set player score
    VariablesService.SetVariable("player_score", "10");
    

    ⚡ Listen for Changes to Variables

    You can setup callbacks through Unity Editor or through code to receive callbacks when variables change.

    VariablesListener

    ⚡ Seamless Unity Editor Integration

    This asset has seamless integration in Unity. Work with user friendly inspectors to set global variables and the callbacks when they change.

    VariablesListener

    VariablesService

    ⚡ Tutorials, Demo Scenes and Good Documentation

    This package contains demo scenes and reusable prefabs to get you started. You can always reach us at our discord server and support forum for this asset.

    Geting Started

    You can get the Variables asset from Unity Asset Store.

    To start using the asset, visit the Getting Started page.

    In This Article
    Back to top Generated by DocFX