Skip to content

Commit 14086b5

Browse files
author
rdeioris
authored
Update Subclassing_API.md
1 parent 67d5c4f commit 14086b5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/Subclassing_API.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,23 @@ class Hero(Character):
6161
self.set_actor_location(location)
6262
```
6363

64+
Array can be specified like this:
65+
66+
```py
67+
import unreal_engine as ue
68+
from unreal_engine.classes import Character, PawnSensingComponent, Pawn, FloatProperty
69+
70+
class Hero(Character):
71+
72+
# you can set it from the editor as array
73+
UpSpeed = [FloatProperty]
74+
75+
def ReceiveTick(self, DeltaSeconds: float):
76+
location = self.get_actor_location()
77+
location.z += self.UpSpeed[0] * DeltaSeconds
78+
self.set_actor_location(location)
79+
```
80+
6481

6582
Functions and Events
6683
--------------------

0 commit comments

Comments
 (0)