'UpdateCollisionProfile' : is not a member of 'USkeletalMeshComponent'
I can play my Game in PIE, but when launching or packaging I get this error:
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:
but the error still occours. Does anyone know a solution, or has a hint for this problem?
Thank you for any feedback, Bertram
asked Nov 30 '15 at 10:37 AM in Packaging & Deployment
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
answered Nov 30 '15 at 12:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here