MCPcopy
hub / github.com/EngoEngine/engo / SelectAnimationByAction

Method SelectAnimationByAction

common/animation.go:48–51  ·  view source on GitHub ↗

SelectAnimationByAction sets the current animation. An nil action value selects the default animation.

(action *Animation)

Source from the content-addressed store, hash-verified

46// SelectAnimationByAction sets the current animation.
47// An nil action value selects the default animation.
48func (ac *AnimationComponent) SelectAnimationByAction(action *Animation) {
49 ac.CurrentAnimation = action
50 ac.index = 0
51}
52
53// AddDefaultAnimation adds an animation which is used when no other animation is playing.
54func (ac *AnimationComponent) AddDefaultAnimation(action *Animation) {

Callers 6

UpdateMethod · 0.80
setAnimationFunction · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls