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"

UE4 C++ Interface. How To.

I have a question about implementing a basic c++ interface. I setup the UE4 interface using a tutorial but am having no luck with getting it to work. To test the interface I place the casting function into the frog .cpp. If it worked the Flower class and Frog class "helloworld" message should, or wanted to, show up in the output log. What am I doing wrong?

alt text alt text alt text

Product Version: UE 4.13
Tags:
flower.jpg (517.1 kB)
frog.jpg (665.0 kB)
interface.jpg (426.2 kB)
more ▼

asked Sep 17 '16 at 11:07 PM in C++ Programming

avatar image

prodyssey
11 1 2 4

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

3 answers: sort voted first

You have several syntactical errors. In AFrog's begin play you have a missing ; and you need to close and open your {} brackets properly. Use proper indentation. You also didnt tell us what the problem was, but that will not compile so I am going to guess that is your problem.

That being said, if you dont know C++ stop using UE4. Learn C++ first and then come back. UE4's C++ is harder to learn than standard C++ so you should start with just C++.

more ▼

answered Sep 17 '16 at 11:13 PM

avatar image

NoobsDeSroobs
2.7k 108 36 180

avatar image prodyssey Sep 17 '16 at 11:50 PM

Excuse the brackets, I made the message in the middle of doing something. It compiles. What is missing in order to make the interface work?

alt text alt textalt text![alt text][3]

flower.jpg (574.0 kB)
frog.jpg (692.3 kB)
interface.jpg (445.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

heres the tutorial I pulled this one from. If anyone can figure it out please help. Interfaces are great.

link text

more ▼

answered Sep 18 '16 at 12:37 AM

avatar image

prodyssey
11 1 2 4

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

OK, I think I may have figured out how to make the interface work in c++ ue4. This is being done in 4.13 so I'm using the premade c++ UInterface class. I'm still running tests. Once it works in a good predictable way I may make a tutorial for it.

more ▼

answered Sep 18 '16 at 04:31 PM

avatar image

prodyssey
11 1 2 4

avatar image NoobsDeSroobs Sep 18 '16 at 06:27 PM

As I was about to answer your comment, I saw that you posted this. Please try to not make answers when you want to make comments though. Please change these two answers to comments. Good to hear you managed to get it to work!

(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