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"

DefaultPawn, how can i create using c++?

So i am doing a course on Udemy with Ben Tristem, i am at the chapter two where he creates a Escape game. In this course he uses blueprint to create the default pawn since we couldnt choose the default pawn in the c++ game, for me that doesnt interest me at all since i am studying computer science and i am experimenting the engine so i can use my c++ skills and improve!

So do you guys have a link or some tutorial how it is done?

https://gyazo.com/cf833edb5e2c829c8aa0ea2a5f7d5a76

As you can see in my picture defaultPawn class cant be chosen, that is my problem!

Product Version: UE 4.19
Tags:
more ▼

asked Jul 23 '18 at 06:34 PM in C++ Programming

avatar image

Ninhow
1 1 2 2

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

1 answer: sort voted first

Hi Ninhow, That's because "GameModeBase" is a C++ class,and you cannot modify it directly in the editor (there is a UPROPERTY editanywhere before DefaultPawnClass in the code of "GameModeBase.h" which indicate you can modify it in the editor, but if you want to modify it, you have to first derive a blueprint class from it. Maybe this isn't an exact answer, it's my experience, I am also a beginner ). If you click the "+" button on the right of it and derive a blueprint class from it then you can choose the default pawn class. You can always create your class with C++ and derive a blueprint from it at the last step in the editor, if you change your code in the visual studio, the blueprint will also change automatically, this wouldn't be a big trouble.

more ▼

answered Jul 28 '18 at 01:50 PM

avatar image

8流浪的风8
1

(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