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"

'UpdateCollisionProfile' : is not a member of 'USkeletalMeshComponent'


I can play my Game in PIE, but when launching or packaging I get this error:

 LogPlayLevel: UnrealBuildTool: C:\Users\Me\Desktop\Project\Source\Project\MyClass.cpp(558) : error C2039: 'UpdateCollisionProfile' : is not a member of 'USkeletalMeshComponent'
 LogPlayLevel: UnrealBuildTool:         C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Engine\Classes\Components/SkeletalMeshComponent.h(280) : see declaration of 'USkeletalMeshComponent'

This error is caused by a call in one of my C++-Class-Functions:


where myMesh is a "USkeletalMeshComponent".

The outputlog says, i should check if "UpdateCollisionProfile" is declared in " C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Engine\Classes\Components/SkeletalMeshComponent.h(280)". It seems to be declared in line 819:

     virtual void UpdateCollisionProfile() override;

but the error still occours. Does anyone know a solution, or has a hint for this problem?

Thank you for any feedback, Bertram

Product Version: UE 4.9
more ▼

asked Nov 30 '15 at 10:37 AM in Packaging & Deployment

avatar image

46 4 9 10

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

1 answer: sort voted first

Hi, UpdateCollisionProfile is defined within a #if WITH_EDITOR preprocessor so it can only be used while compiling an Editor version of the engine.

You may change your code with something like this

 #endif // WITH_EDITOR
more ▼

answered Nov 30 '15 at 12:42 PM

avatar image

1.4k 47 32 103

avatar image Bertram.Sch Dec 02 '15 at 02:40 PM

Thank you, i guess this is the issue. I just removed the line, it seemed not to be necessary for my function.

(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