s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
StateMachineBuilder
chevron_left Classes
class
StateMachineBuilder

Methods

functionsAddOffStatefunctionsAddStatefunctionsAddTransitionfunctionsBuildfunctionsCompletedfunctionsCreateTransitionfunctionsSetDefaultStatefunctionsSetEntryConditionfunctionsTimeCondition

Static Fields

crop_dinMaxStates
StateMachineBuilder
A state machine being built, created by Sandbox.Animation.GraphBuilder.StateMachine.
class Sandbox.Animation.GraphBuilder .
sealedSandbox.Engine

functions Methods 9

AddOffState (entryEvents, exitEvents, fullyInStateEvents)
State
AddState (child, entryEvents, exitEvents, fullyInStateEvents)
State
AddTransition (from, to, condition, settings)
Node
Add a transition between two states, taken when is true.
Build ()
Node
Completed (state, transitionDuration)
Node
A condition that is true when has nearly played through - within seconds of its end.
CreateTransition (target, settings)
Node
Create a transition node without adding a route, allowing it to be shared by multiple source states.
SetDefaultState (state)
SetEntryCondition (state, condition)
TimeCondition (state, settings)
Node

crop_din Static Fields 1

MaxStates
int
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