Skip to content

Commit c9b4631

Browse files
author
rdeioris
authored
Update Subclassing_API.md
1 parent 18973ea commit c9b4631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Subclassing_API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Hero(Character):
141141
# this new method will be available to blueprints
142142
def FunnyNewMethod(self, a_word: str):
143143
ue.print_string('This is a word from blueprint: ' + a_word)
144-
FunnyNewMethod.is_pure = True
144+
FunnyNewMethod.pure = True
145145
```
146146

147147
or static:
@@ -155,7 +155,7 @@ class Hero(Character):
155155
# this new static method will be available to blueprints
156156
def FunnyStaticMethod():
157157
ue.print_string('I am a static method')
158-
FunnyNewMethod.is_static = True
158+
FunnyNewMethod.static = True
159159
```
160160

161161
Events can be easily exposed like this:

0 commit comments

Comments
 (0)