x

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"

C++ Android Address

Hi, I don't know why my code run in the editor but when I package game for the Android platform, I encounter an error and program close automatically. Actually, I want to use my blueprint Player Controller and Character instead of the static class of it so I tried to address BP but failed(in Android). Anyone can help me to solve it. Thanks in advance.

 MobileGameModeBase::MobileGameModeBase()
 {
 
     UClass* PlayerControllerBPClass = LoadObject< UClass >(nullptr, TEXT("/Game/Blueprint/MainPlayer/MyPlayerControllerBP.MyPlayerControllerBP_C"));
 
     if (PlayerControllerBPClass)
         PlayerControllerClass = PlayerControllerBPClass;
 
     UClass* CharacterBPClass = LoadObject< UClass >(nullptr, TEXT("/Game/Blueprint/MainPlayer/MainCharacterBP.MainCharacterBP_C"));
 
     if (CharacterBPClass)
         DefaultPawnClass = CharacterBPClass;
 }
Product Version: UE 4.20
Tags:
more ▼

asked Jul 30 '18 at 10:55 AM in C++ Programming

avatar image

Game2com
11 2 6

avatar image mightyenigma Jul 30 '18 at 04:13 PM

What error messages do you find in the packaged build while running android monitor with the device plugged into your computer?

avatar image Game2com Jul 31 '18 at 06:47 AM

Just a simple android error " unfortunately application has stopped " also there is no log info about the error.

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

3 answers: sort voted first

I just disabled "don't include editor content in the build" so my problem fixed. I think it's a bug.

more ▼

answered Aug 04 '18 at 05:45 AM

avatar image

Game2com
11 2 6

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

Any idea?

more ▼

answered Aug 01 '18 at 08:40 AM

avatar image

Game2com
11 2 6

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

I just disabled "don't include editor content in the build" so my problem fixed. I think it's a bug.

more ▼

answered Aug 04 '18 at 05:44 AM

avatar image

Game2com
11 2 6

(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