s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Components
Button
Toggle
chevron_left Components
class
Button

Constructors

functionsButton

Properties

data_objectAnimationCurvedata_objectAnimationTimedata_objectAutoResetdata_objectIsAnimatingdata_objectIsOndata_objectModedata_objectMovedata_objectMoveDeltadata_objectMoveTargetdata_objectOffSounddata_objectOnPresseddata_objectOnReleaseddata_objectOnSounddata_objectOnTurnedOffdata_objectOnTurnedOndata_objectResetTimedata_objectTooltipDescriptiondata_objectTooltipDescriptionOffdata_objectTooltipIcondata_objectTooltipIconOffdata_objectTooltipTitledata_objectTooltipTitleOff

Methods

functionsTogglefunctionsTurnOfffunctionsTurnOn
Toggle
Toggles the button between on and off states.
method
void Toggle (GameObject presser)

Parameters

NameTypeDescription
presser GameObject
Declared in Sandbox.Mapping.Button ยท Assembly Sandbox.Engine
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter