Skip to content

Commit fa3f90a

Browse files
author
Roberto De Ioris
authored
Update Animation_API.md
1 parent aecb2d4 commit fa3f90a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/Animation_API.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
You can control animation blueprints variables and events easily:
55

66
```py
7+
8+
from unreal_engine.classes import SkeletalMeshComponent
9+
710
# get a reference to the skeletal mesh
8-
skeletal = self.uobject.get_component_by_type('SkeletalMeshComponent')
11+
skeletal = self.uobject.get_component_by_type(SkeletalMeshComponent)
912
# get a reference to the animation class
1013
animation = skeletal.get_anim_instance()
1114

0 commit comments

Comments
 (0)