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"

UAnimMontage is undefined after update

Hello, I just converted my project to try out the preview build, but apparently UAnimMontage is undefined now.

Do I have to use something else now? I can post my code if needed.

Product Version: UE 4.13 Preview
Tags:
more ▼

asked Aug 04 '16 at 11:20 AM in Bug Reports

avatar image

Wrekk
82 24 24 30

avatar image Doug E ♦♦ STAFF Aug 04 '16 at 02:15 PM

Hey Wrekk-

Can you elaborate on exactly what the issue is that you're seeing? I am able to create a new class based on AnimMontage as well as create a new Animation Montage asset in the editor in the binary version of the preview. If possible, please provide the setup you're using for your AnimMontage or the steps used to set it up to help me test on my end.

avatar image Wrekk Aug 04 '16 at 02:57 PM

Sure! So this is the function I'm having trouble with:

static FORCEINLINE UAnimMontage* GetAnimFromLibrary(const FString AnimName) { for (uint16 i = 0; i < AnimLibrary.Num(); i++) if (AnimLibrary[i]->GetName() == AnimName) return AnimLibrary[i]; return NULL; }

At the GetName function I get this error: "error C2027: use of undefined type 'UAnimMontage'"

I tested it just before updating to 4.13 (4.12.5 before), and there were no errors.

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

2 answers: sort voted first

From my testing I found that AnimMontage is not included by default in the 4.13 version of the engine. Adding an include statement for the AnimMontage class ( #include "Runtime/Engine/Classes/Animation/AnimMontage.h") should prevent the compile error you're getting.

Cheers

Doug Wilson

more ▼

answered Aug 04 '16 at 04:47 PM

avatar image Wrekk Aug 04 '16 at 05:09 PM

Why is it not included anymore? That's... weird. :s

avatar image Doug E ♦♦ STAFF Aug 09 '16 at 04:19 PM

Hey Wrekk-

This change was made as a clean-up effort in order to improve overall compile times.

avatar image 巫资深 Sep 10 '16 at 12:53 AM

But not package success!

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

Since every file of your project must include [PROJECTNAME].h, simply insert that include in that file. In your case, put #include "Runtime/Engine/Classes/Animation/AnimMontage.h"

more ▼

answered Oct 30 '16 at 09:40 PM

avatar image

ebusiangamers
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