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"

Replace the ThirdPerson character with a MixamoAnimPack character problem

Hi, I have a simple C++ project based on the ThirdPerson template, everything work fine. But I tried to change the Character into a MixamoAnimPack character that I downloaded from the marketplace, the character can be loaded and move around with animation via W, S, A, D keys, but it can't be fully possessed by the player controller. for example, the collection sphere is not attached to the new character, and certain keyboard inputs don't work. Any suggestions and help please ?

I have also tried following code in my GameMode class as follows, but it seems did nothing to allow the player controller to posses the new character.

AMyProjectGameMode::AMyProjectGameMode() {

// set default pawn class to our Blueprinted character static ConstructorHelpers::FClassFinder PlayerPawnBPClass(TEXT("/Game/MixamoAnimPack/Mixamo_Kachujin/Mixamo_Kachujin")); if (PlayerPawnBPClass.Class != NULL) { DefaultPawnClass = PlayerPawnBPClass.Class; } }

void AMyProjectGameMode::BeginPlay() { Super::BeginPlay();

 // Set score to beat
 AMyProjectCharacter* MyCharacter = Cast<AMyProjectCharacter>(UGameplayStatics::GetPlayerPawn(this, 0));
 for (FConstPlayerControllerIterator It = GetWorld()->GetPlayerControllerIterator(); It; It++)
     APawn* MyPawn = Cast<APawn>(DefaultPawnClass);

     MyPlayerController = Cast<APlayerController>(*It);
     if (MyPlayerController && MyPlayerController->IsLocalController())


Thanks in advance

Product Version: UE 4.9
more ▼

asked Nov 30 '15 at 06:27 PM in C++ Programming

avatar image

6 1 1

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

1 answer: sort voted first

Hello wtang,

You mention a collection sphere. Is this something that was set up in the ThirdPersonCharacter class in code and/or Blueprints? If so, when you replace it with the Blueprint for the Mixamo character, it won't have all of that logic. I would suggest replacing the skeletal mesh of the ThirdPersonCharacter instead of replacing the entire pawn.

more ▼

answered Nov 30 '15 at 07:00 PM

avatar image wtang Nov 30 '15 at 07:08 PM

Hi, Thanks for your answer. The collection sphere is a sphere component that I setup in code:

AMyProjectCharacter::AMyProjectCharacter() { / / Create the battery collection volume CollectionSphere = CreateDefaultSubobject(TEXT("CollectionSphere")); CollectionSphere->AttachTo(RootComponent); CollectionSphere->SetSphereRadius(200.f);


Please the attached image, the girl has no collection sphere attached to her. Therefore, all the code related to collection sphere doesn't work.

alt text

test.png (500.1 kB)
avatar image wtang Nov 30 '15 at 07:19 PM

Hi Matthew, I want to say a big thank you for your help. I followed your suggestions to replace the skeleton mesh and it works !! Many thanks, being spent more than two days on this.

(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