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"

Editor doesn't display C++ classes located in the folder named "Android"

I was trying to create classes in this folder and I can not use them in editor because they are not displayed in Content Browser. No matter how deep is hierarchy of this folder, all classes in the folder and its subfolders are not displayed. Restarting the editor and even rebuilding UE4Editor-FolderTest.dll does not help either. It looks like bug for me. Can you guys confirm it?

Steps to reproduce:

  1. Create BasicCode C++ project (Desktop / Console, Maximum Quality, No Starter Content)

  2. Add new C++ class located in project subfolder called "Android" (actually not matter, but in my case class deriverd from Pawn)

alt text Class is not displayed in Content Browser, after hot reloading. alt text

Product Version: UE 4.17
Tags:
testfolder.png (49.6 kB)
folodertest1.png (194.6 kB)
more ▼

asked Oct 15 '17 at 07:35 PM in Bug Reports

avatar image

Crimer
1 2 3

avatar image Shadowriver Oct 15 '17 at 08:18 PM

Can you check class viewer? Window->Devloper Tools->Class Viewer If it won't apper there that means engine don't see that class at all, which most likely means your code don't build at all. So in VS do you see sign of this code being compiled at all?

avatar image Crimer Oct 16 '17 at 12:51 PM

Hi, Shadowriver

I checked Class Viewer and you were right. Class in this folder was not build at all, according to Visual Studio log. I have created another folder (named "AnotherFolder"), added MyCharacter class to my project and put some code to both MyPawn.cpp and MyCharacter.cpp in Tick methods (added function AddOnScreenDebugMessage to output debug message, just to be sure there were some changes to the cpp files) and rebuilt solution in VS. As a result MyCharacter class was recompiled and displayed in Class Viewer, however MyPawn wasnt. At the moment, I have no idea what can cause behaviour like this. If you are not expiriencing such behaviour its probably something wrong with my VS environment.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Crimer-

Sorry for the late response. What you're seeing is expected because "Android" is a unique word that the editor has special considerations for. Anything in a folder with that name will only be relevant when working with / packaging for Android. You can work around this behavior by editing the folder name slightly (such as _Android or Android_ ).

Cheers

Doug E

more ▼

answered Nov 13 '17 at 07:10 PM

(comments are locked)
10|2000 characters needed characters left
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