This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm trying to add a widget component to an enemy script of mine to display health bars, etc. I've done the standard thing where I forward declare the UWidgetComponent header in my EnemyTemplate.cpp, then create a pointer to a new UWidgetComponent in the EnemyTemplate.h.
When I do this, however, it gives me errors saying "unexpected token(s) preceding ";"", or "syntax error: missing ';' before '*'" Whenever I try bringing the UWidgetComponent #include statement into the header, it creates a new host of errors, some incomprehensibly long nonsense about "unresolved externals."
Does anyone know why UWidgetComponent is so fickle, and how to fix this?
Subreddit
Post Details
- Posted
- 4 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/unrealengin...