Skip to main content

Displaying Your Own Values

Displaying values

using qASIC.Displayer;

public class ExampleScript: MonoBehaviour
{
public DisplayerValueAssigner ExampleAssigner = new DisplayerValueAssigner();

private void Update()
{
//You have to specify a tag that can be configured in the displayer itself
//'main' is the default tag for a displayer
//You can have multiple displayers in the scene, depending on your needs

//With value assigner
ExampleAssigner.DisplayValue("example value", "main");

//Directly
InfoDisplayer.DisplayValue("position", "example value", "main");
}
}

Toggling values

using qASIC.Displayer;

public class ExampleScript: MonoBehaviour
{
public DisplayerValueAssigner ExampleAssigner = new DisplayerValueAssigner();

private void Update()
{
//You have to specify a displayer tag with 'main' being the default
//You can have multiple displayers in the scene, depending on your needs

//With value assigner
ExampleAssigner.ToggleValue(false, "main");

//Directly
InfoDisplayer.ToggleValue("position", false, "main");
}
}