s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
GraphParameters
chevron_left
Classes
class
GraphParameters
Properties
data_object
Graph
Methods
functions
Clear
functions
Contains
functions
GetBool
functions
GetFloat
functions
GetString
functions
GetVector
functions
Reset
functions
Set
functions
SetTargetBone
functions
TryGetBool
functions
TryGetFloat
functions
TryGetId
functions
TryGetKind
functions
TryGetString
functions
TryGetTargetTransform
functions
TryGetVector
functions
TrySet
functions
TrySetTargetBone
functions
TryUnsetTarget
functions
UnsetTarget
GraphParameters
Animation graph parameter access. Writes affect the live instance unless explicitly persisted. Inspector values are saved with the owner and reapplied when its instance is recreated.
class
Sandbox.Animation
.
sealed
Sandbox.Engine
data_object
Properties
1
Graph
Graph
functions
Methods
20
Clear
(
)
Clears saved values and resets the live parameters to their authored defaults.
Contains
(
name
)
bool
Whether this parameter has a saved value.
GetBool
(
name
)
bool
GetFloat
(
name
)
float
GetString
(
name
)
string
GetVector
(
name
)
Vector3
Reset
(
)
Resets this graph's control parameters to their authored defaults.
Set
(
name
,
value
,
persist
)
Sets a live value, or saves and reapplies it across instance recreation when
is true.
SetTargetBone
(
name
,
bone
,
persist
)
TryGetBool
(
name
,
value
)
bool
TryGetFloat
(
name
,
value
)
bool
TryGetId
(
name
,
value
)
bool
TryGetKind
(
name
,
kind
)
bool
TryGetString
(
name
,
value
)
bool
Reads an ID's source text. Returns false if the token has no known source string.
TryGetTargetTransform
(
name
,
value
)
bool
Reads a transform target. Unset targets and bone targets return false.
TryGetVector
(
name
,
value
)
bool
TrySet
(
name
,
value
)
bool
TrySetTargetBone
(
name
,
bone
)
bool
TryUnsetTarget
(
name
)
bool
UnsetTarget
(
name
,
persist
)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.