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"

Why am I seeing an error message stating that GetMetaData is not a member of UClass?

 error C2039: 'GetMetaData' : is not a
 member of 'UClass' 2>         
 : see declaration of 'UClass'

This is beyond frustrating. Everything was working fine, I didn't even change the file. All I did was close the editor and try to rebuild as a Development-Editor project instead of Deubg-Editor, because of another UE4 bug. Here is the definition of MyHUD.h .

 ///// MyHUD.h
 ///// User created HUD class
 ///// 5/28/2014
 #pragma once
 #include "GameFramework/HUD.h"
 #include "MyHUD.generated.h"
 /**  *   */ UCLASS(config=Game,
 notplaceable, transient,
 dependson=UCanvas, BlueprintType,
 Blueprintable) class AMyHUD : public
     void DrawHUD();      

Any idea why things would work fine for one build and not work the next? Also, I'm staring right at GetMetaData in the UClass definition. Why it's said to not be a member of UClass Is beyond me, I'm staring right at it.

Product Version: Not Selected
more ▼

asked Jun 04 '14 at 04:02 AM in C++ Programming

avatar image

184 22 36 157

avatar image User-658380556 Jun 04 '14 at 04:12 AM

I got a tip in IRC.

quite a lot of editor side code has preprocessor stuff to include / exclude it from certain build configs

GetMetaData must be included or excluded from certian build targets.

avatar image Tim C ♦♦ STAFF Jun 04 '14 at 04:14 PM

Hi Bleakwise,

I set up a class derived from HUD based on the .h you provided, but I was not able to see the error message you mentioned when changing between Debug Editor and Development Editor configurations. Would you be able to provide the code in your .cpp for the class?

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

1 answer: sort voted first

Hi Bleakwise,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

more ▼

answered Jul 02 '14 at 10:16 PM

avatar image

Tim C ♦♦ STAFF
18.1k 423 69 286

avatar image yanghua Sep 06 '18 at 06:19 AM

I also have this problem,

(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