Skip to content

Commit 4a0bf3f

Browse files
author
rdeioris
authored
Update Subclassing_API.md
1 parent cf5a70d commit 4a0bf3f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎docs/Subclassing_API.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ class Hero(Character):
8484
self.set_actor_location(location)
8585
```
8686

87+
To map object references to properties:
88+
89+
90+
```py
91+
import unreal_engine as ue
92+
from unreal_engine.classes import Character, PawnSensingComponent, Pawn, FloatProperty
93+
94+
class Hero(Character):
95+
96+
# you can set it from the editor
97+
AnotherCharacter = Character
98+
99+
def ReceiveTick(self, DeltaSeconds: float):
100+
ue.log('Hello ' + str(AnotherCharacter))
101+
```
102+
87103

88104
Functions and Events
89105
--------------------

0 commit comments

Comments
 (0)