Skip to content

Commit 96612ff

Browse files
author
Roberto De Ioris
authored
Create Animation_API.md
1 parent bc2dd1f commit 96612ff

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/Animation_API.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# The Animation API
3+
4+
You can control animation blueprints variables and events easily:
5+
6+
```py
7+
# get a reference to the skeletal mesh
8+
skeletal = self.uobject.get_component_by_type('SkeletalMeshComponent')
9+
# get a reference to the animation class
10+
animation = skeletal.get_anim_instance()
11+
12+
# set a variable
13+
animation.set_property('Speed', 17.0)
14+
15+
# trigger a custom event
16+
animation.call('AttackWithSword')
17+
```

0 commit comments

Comments
 (0)