Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UInstancedStaticMeshComponent* Not a recognized type?


In my project I've been trying to add an instanced static mesh to an APawn in its constructor. Unfortunately, despite having declared the UStaticMeshComponent* in the header file, compiling fails as the engine asks, "Did you mean UStaticMeshComponent?"

Has something changed and now instanced static meshes can no longer be created in the constructor?

Any advice would be appreciated.


Product Version: UE 4.18
more ▼

asked Dec 11 '17 at 07:02 PM in C++ Programming

avatar image

5 3 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
 #include "Components/InstancedStaticMeshComponent.h"

Advice: Learn some C++ essentials ;P

more ▼

answered Dec 11 '17 at 11:17 PM

avatar image

7k 143 28 172

avatar image MC1RScorpion Dec 13 '17 at 12:14 AM

Thanks for the help and the advice. I'm doing my best!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question