質問するログイン新規登録

質問編集履歴

2

誤字

2020/03/09 21:47

投稿

lkiuxc
lkiuxc

スコア29

title CHANGED
File without changes
body CHANGED
@@ -5,8 +5,8 @@
5
5
  #pragma once
6
6
 
7
7
  #include "CoreMinimal.h"
8
+ #include "Components/ActorComponent.h"
8
- #include "Components/ActorComponent.h" //これを入れると
9
+ #include "GameFramework/Actor.h" //これを入れると
9
- #include "GameFramework/Actor.h"
10
10
  #include "AssultGun.generated.h"
11
11
 
12
12
  UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))

1

エラー箇所の追加

2020/03/09 21:47

投稿

lkiuxc
lkiuxc

スコア29

title CHANGED
File without changes
body CHANGED
@@ -5,14 +5,14 @@
5
5
  #pragma once
6
6
 
7
7
  #include "CoreMinimal.h"
8
- #include "Components/ActorComponent.h"
8
+ #include "Components/ActorComponent.h" //これを入れると
9
9
  #include "GameFramework/Actor.h"
10
10
  #include "AssultGun.generated.h"
11
11
 
12
12
  UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
13
13
  class NEWWORLDOFCRYSTAL_API UAssultGun : public UActorComponent
14
14
  {
15
- GENERATED_BODY()
15
+ GENERATED_BODY() // 「この宣言にはストレージ クラスまたは型指定詞がありません」
16
16
 
17
17
  public:
18
18
  // Sets default values for this component's properties