Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Creating Sliders

Plague edited this page Oct 10, 2021 · 2 revisions

To Create A Slider In A SubMenu (See "Creating Buttons" On The Right For How To Create SubMenus), Use:

ButtonAPI.CreateSlider(YourParentTransform.transform, delegate (float v)
{
    //Ran When The Slider Is Edited By The User
}, (float)ButtonAPI.HorizontalPosition.FirstButtonPos, (float)ButtonAPI.VerticalPosition.TopButton, "Test Slider"/*Text Above The Slider*/, 15f/*The Initial Value When The Slider Is Created*/, 100f/*The Maximum Value The Slider Can Go*/, 0f/*The Minimum Value The Slider Can Go*/);
Clone this wiki locally