MCPcopy Index your code
hub / github.com/EngoEngine/engo / SelectAnimationByName

Method SelectAnimationByName

common/animation.go:41–44  ·  view source on GitHub ↗

SelectAnimationByName sets the current animation. The name must be registered.

(name string)

Source from the content-addressed store, hash-verified

39// SelectAnimationByName sets the current animation. The name must be
40// registered.
41func (ac *AnimationComponent) SelectAnimationByName(name string) {
42 ac.CurrentAnimation = ac.Animations[name]
43 ac.index = 0
44}
45
46// SelectAnimationByAction sets the current animation.
47// An nil action value selects the default animation.

Callers 4

UpdateMethod · 0.80
CreateHeroMethod · 0.80

Calls

no outgoing calls

Tested by 3

UpdateMethod · 0.64