Skip to content

"Class<AssetPaths> has no field" during tutorial #2329

Answered by Gama11
crywalt asked this question in Q&A
Discussion options

You must be logged in to vote

The asset path macro results tend to be cached a bit too agressively unfortunatenly. A more "lightweight" method of refreshing it is F1 -> Haxe: Restart Language Server. Note that compilation should still work, this is likely just a "diagnostics" error.

Also note that you can always use string asset paths instead, the macro is just for convenience - loadGraphic("assets/images/coin.png").

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crywalt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants