FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

UnrealEnginePython/docs/Animation_API.md at develop · 20tab/UnrealEnginePython · GitHub

Repository navigation

Latest commit

 

History

History
17 lines (12 loc) · 407 Bytes
  1. UnrealEnginePython
  2. docs

Animation_API.md

File metadata and controls

17 lines (12 loc) · 407 Bytes

The Animation API

You can control animation blueprints variables and events easily:

# get a reference to the skeletal mesh
skeletal = self.uobject.get_component_by_type('SkeletalMeshComponent')
# get a reference to the animation class
animation = skeletal.get_anim_instance()

# set a variable
animation.set_property('Speed', 17.0)

# trigger a custom event
animation.call('AttackWithSword')

Back | FazBrowse Home | New Git URL