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"

Inheriting ACameraActor results in compile error

Hi guys, I am just inheriting ACameraActor. I haven't added anything custom yet. The problem is when I am building the project it says that virtual void ACameraActor::Serialize(FArchive& Archive) is not resolved. I tried overriding it by just calling the Super::Serialize(FArchive& Archive), but it's the same. Can anyone tell me why this is happening?

Product Version: Not Selected
Tags:
more ▼

asked Jul 27 '14 at 01:27 PM in C++ Programming

avatar image

dbrizov
329 21 22 43

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

1 answer: sort voted first

You probably don't need to inherit from this particular actor, since it's simple "wrapper" to place camera right in the level, if you want to write custom logic for camera component, inherit from the component and add to your actor or if you want implement something like AMyCameraActor :)

But now to your problem, ACameraActor's UCLASS has MinimalAPI specifier, which means it does not export all the methods of the class, only those required by the UObject system. It means that you can't inherit from it outside of its module - Engine. There might be some workarounds, but i am not familiar with those.

more ▼

answered Jul 27 '14 at 01:56 PM

avatar image

BiggestSmile
1.6k 54 38 105

avatar image dbrizov Jul 27 '14 at 02:58 PM

Actually I was wondering what this MinimalAPI specifier is. Thanks for the advise mate. I guess I am gonna inherit UCameraComponent and do some stuff.

(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