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"

How to tell the engine to use a subclass of a Source class instead of the parent?

Hi, I've created a class called MyGameViewport client, its parent is GameViewport (located in the source code). As the subclass has been created through "Add code to project" it's been saved and built with the code of that project, but a printing debugging function shows it's not being used by the engine.

How to tell the engine to substitute the parent class with the created subclass?

Product Version: Not Selected
Tags:
more ▼

asked Apr 12 '14 at 05:40 PM in C++ Programming

avatar image

Albert Espín
967 80 97 358

avatar image Albert Espín Apr 12 '14 at 07:17 PM

Any ideas?

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

1 answer: sort voted first

Check project settings, there a lot of default class settings there, if not then some class might have default class varable

more ▼

answered Apr 12 '14 at 07:55 PM

avatar image

Shadowriver
34.7k 918 164 1095

avatar image Albert Espín Apr 12 '14 at 09:16 PM

Yes, actually that's it. GameViewportClient to use can be set there. Thanks!

(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