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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

GENERATED_BODY() issue from 4.12 to 4.14


We are currently upgrading from 4.12 to 4.14 (testing 4.13 along the way to be sure) and we are up to updating to 4.14 but we are having issues doing so.

When we try to build on 4.14, we get one of our class throwing this error:

 Error    C2664    'int32 UVOComponent::CountVoxels(const TArray<TEnumAsByte<EVOGroup>,FDefaultAllocator> &,const TArray<TEnumAsByte<EVOGroup>,FDefaultAllocator> &)': cannot convert argument 1 from 'TArray<EVOGroup,FDefaultAllocator>' to 'const TArray<TEnumAsByte<EVOGroup>,FDefaultAllocator> &'

this error is marked at the GENERATED_BODY() line of one of our classes:

 UCLASS(editinlinenew, meta = (BlueprintSpawnableComponent, DisplayName = "Voxelized Object Component"), ClassGroup = Rendering)
 class VOXELIZEDOBJECTPLUGIN_API UVOComponent : public UVOMeshComponent
     UVOComponent(const FObjectInitializer& Initializer);
     /** Simple collision primitive to use as the root component. */
     UPROPERTY(EditAnywhere, BlueprintReadWrite)
     UBoxComponent* BaseCollisionComponent;
     /** Static Mesh used as model for generating voxels */
     UPROPERTY(EditAnywhere, BlueprintReadWrite)
     UStaticMesh* OriginalMesh;

I am aware that from one version to the other Generated_Body usually changes but we were wondering if this was a common issue with 4.14

Product Version: UE 4.14
more ▼

asked Jan 26 '17 at 06:16 PM in Installation & Setup

avatar image

8 1 4

avatar image S-ed Jan 26 '17 at 06:41 PM

It's not an answer, but.

In most cases the issue is not within GENERATED.

It's within class definition. Once class created in UE4 some of its methods and members are defined. In newer version however, definition may vary, that causes class that was "generated" by engine before have a different definitions and don't match actual engine's parent class/macro definition.

There may be an option to generate same class in 4.14 and take a look on it's definition. Or inspect parent class definition.

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

1 answer: sort voted first


This is covered in the release notes:


"TEnumAsByte is no longer used for generated code involving enum classes. If you get errors involving TEnumAsByte with your UENUM enum class, please provide a uint8 base to your type and remove the TEnumAsByte usage."


more ▼

answered Jan 26 '17 at 06:34 PM

avatar image

Steve Robb STAFF
2.8k 58 28 101

(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