Summary

Renders a skinned model in the world. A skinned model is any model with bones/animations.

Constructors

SkinnedModelRenderer

Properties

AnimationGraph Override animgraph, otherwise uses animgraph of the model.
BoneMergeTarget
CreateBoneObjects
Morphs Access to the morphs for this model
OnAnimTagEvent Called when an anim tag event happens
OnFootstepEvent Called when a footstep event happens
OnGenericEvent Called when a generic animation event happens
OnSoundEvent Called when a sound event happens
Parameters Access to the animgraph parameters for this model
PlayAnimationsInEditorScene If true then animations will play while in an editor scene.
PlaybackRate Control playback rate of animgraph or current sequence.
RootMotion
SceneModel
Sequence Allows playback of sequences directly, rather than using an animation graph. Requires Sandbox.SkinnedModelRenderer.UseAnimGraph disabled if the scene model has one.
ShouldShowMorphsEditor
ShouldShowParametersEditor
ShouldShowSequenceEditor
UseAnimGraph Usually used for turning off animation on ragdolls.

Methods

ClearIk This sets ik.{name}.enabled to false.
ClearParameters Remove any stored parameters
ClearPhysicsBones
GetAttachment
GetBoneObject Get the GameObject of a specific bone.
GetBoneTransforms Allocate an array of bone transforms in either world space or parent space.
GetBoneVelocities Allocate an array of bone veloicities in world space
GetBool
GetFloat
GetInt
GetRotation
GetVector
PostAnimationUpdate
Set
SetBoneTransform
SetIk Sets an IK parameter. This sets 3 variables that should be set in the animgraph: 1. ik.{name}.enabled 2. ik.{name}.position 3. ik.{name}.rotation
SetLookDirection Converts value to vector local to this entity's eyepos and passes it to SetAnimVector
TryGetBoneTransform Try to get the final worldspace bone transform.
TryGetBoneTransformAnimation Try to get the worldspace bone transform after animation but before physics and procedural bones.
TryGetBoneTransformLocal
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.