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.h disappeared!

Expected Behaviour:

The Code should run.

Observed Behaviour:

There comes a strange Error Message: fatal error C1083: file (Include) can't be oppened: "Tank.generated.h": No such file or directory

If I search for the filepath (Unreal Projects\BattleTank\Intermediate\Build\Win64\UE4Editor\Inc\BattleTank) I find a folder with many Files but no file that is Tank.generated.h or Tank.gen.cpp.

Already tried:

I restarted unreal, rebuild Visual Studio, search for the code C1083 and I tried to copy the Tank.generated.h from an other Project.

Product Version: UE 4.20
more ▼

asked Sep 27 '18 at 06:20 PM in Using UE4

avatar image

1 1 1

avatar image Shadowriver Sep 27 '18 at 08:53 PM

Can you show the code? You sure you not missed UCLASS()? UHT wont create this file is there is not object to register, all UPROPERTY and such are ignored.

avatar image Hoppeln Sep 28 '18 at 03:57 PM

No I havn't missed UCLASS(). But here's code: // Fill out your copyright notice in the Description page of Project Settings.

 #pragma once
 #include "CoreMinimal.h"
 #include "GameFramework/Pawn.h"
 #include "Tank.generated.h"
 class UTankBarrel;
 class UTankAimingComponent
 class BATTLETANK_API ATank : public APawn
     // Sets default values for this pawn's properties
     UFUNCTION(BlueprintCallable, Category = Setup)
     void SetBarrelReference(UTankBarrel* BarrelToSet);
     void AimAt(FVector HitLocation);
     // Called when the game starts or when spawned
     virtual void BeginPlay() override;
     UTankAimingComponent* TankAimingComponent = nullptr;
     // Called every frame
     virtual void Tick(float DeltaTime) override;
     // Called to bind functionality to input
     virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
     UPROPERTY(EditAnywhere, Category = Firing)
         float LaunchSpeed = 100000;
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Have you tried to right click and select "regenerate "on the .uproject file? (I have a couple times where generated.h missing or still hold the old definition of UFUNCTION/UPROPERTY, and this was something I do to get past it)

more ▼

answered Sep 28 '18 at 03:16 AM

avatar image

177 1 4 7

avatar image Hoppeln Sep 28 '18 at 03:55 PM

Thanks for your answer, but it hasn't worked.

(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