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"

is there a way to create a class deriverd UObject in C++ Class Wizard?

hi~ everyone

i have seen classes deriverd UObject. they are declared like below

 class UCustome: public UObject
 {
     GENERATED_UCLASS_BODY()
                 .
                 .
                 .
 

i tried to create a class from C++ Class Wizard. but i couldn't find "UObject" as a base class.

is there a way to create a class deriverd UObject in C++ Class Wizard? or should i add a class manually into Visual Studio? or whatever something else?

i appreciate any advices and hints. :)

Product Version: UE 4.16
Tags:
more ▼

asked May 27 '17 at 09:28 AM in C++ Programming

avatar image

MikiTheBabyDog
8 1 4 7

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

2 answers: sort voted first
more ▼

answered May 27 '17 at 04:02 PM

avatar image

Nachtmahr
7k 143 28 172

avatar image MikiTheBabyDog May 28 '17 at 12:24 AM

hi~ and thank you Nachtmahr

ofcause, i tried that too. and i used search field but 'UObject' was not there. -_-
the 'Create Class' button was not activated when i choose just 'Object' as a parent class.

avatar image Nachtmahr May 28 '17 at 12:25 AM

xD its at the very top it wont show you because you dont need to type the prefix "U" its simply Object like Highlighted in my screenshot.

avatar image MikiTheBabyDog May 28 '17 at 12:41 AM

Ohhhhhhh my...... i worked~!!!!

but i swear, the 'Create Class' button was not activated... when i tried it yesterday~!!! xD
thank you Nachtmahr~!!!! i love you <3

avatar image Alex Chozabu P-B Apr 14 '19 at 01:06 AM

If anyone else runs into this, I also had 'Create Class' grayed out only when attempting to create a class basedon object. Compiled solution, restarted editor and it is OK.

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

You can either add the Class through the UE4 Editor, or simply add the classes manually (which is what I do honestly). VS's Class Wizard just saves you a bit of typing, it's not required by any means.

more ▼

answered May 27 '17 at 03:49 PM

avatar image

ExtraLifeMatt
1.6k 34 14 48

avatar image MikiTheBabyDog May 28 '17 at 12:16 AM

ohhh thanks for the answer ExtraLifeMatt :)

i mean, i tried the way you linked basically. but 'UObject' is not at 'Choose Parent Class'.
'UObject' what i said, is not a major term. its a specific class like "Actor", "Pawn", "Character" ;)

(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