Api Sandbox AnimationGraph
class

AnimationGraph

public sealed class AnimationGraph : Resource

Properties

Name Type Description
IsValid virtual Boolean
IsError Boolean Whether the animation graph is invalid, or has not yet loaded.
Name String Animation graph file name.
ParamCount Int32 Number of parameters in this animgraph

Methods

Type GetParameterType(Int32 index)

Get value type of parameter at given index

Type GetParameterType(String name)

Get value type of parameter with the given , or if not found.

String GetParameterName(Int32 index)

Get name of parameter at given index

Boolean TryGetParameterIndex(String name, Int32 index)

Try to get parameter index at given name

AnimParam<T> GetParameter(String name)

Get parameter at given name

AnimParam<T> GetParameter(Int32 index)

Get parameter at given index

static AnimationGraph Load(String filename)

Load an animation graph from given file.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.AnimationGraph