static var not being reconigized #2320
Answered
by
RichardBray
NotTheCoderGb
asked this question in
Q&A
-
h e l p |
Beta Was this translation helpful? Give feedback.
Answered by
RichardBray
Jun 14, 2021
Replies: 2 comments
-
You need to put the static var inside a class. If you want to use a static variable outside of the class you need to get rid of the static keyword. Maybe the inline one as well 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gama11
-
All variables should be inside of a class or function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to put the static var inside a class. If you want to use a static variable outside of the class you need to get rid of the static keyword. Maybe the inline one as well 🤔
https://try.haxe.org/#E0156524