# "プロパティ の読み取りを試行するためのアクセスはありません"の原因がわかりません

**URL:** <https://forums.unrealengine.com/t/topic/487799>\
**Category:** Platform & Builds\
**Tags:** error, accessed-none, unreal-engine, Scripting, question\
**Created:** [August 22, 2021, 4:37am UTC](https://forums.unrealengine.com/t/topic/487799 "2021-08-22T04:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmtok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmtok](https://forums.unrealengine.com/u/tmtok)\
**Post date:** [August 22, 2021, 4:37am UTC](https://forums.unrealengine.com/t/topic/487799/1 "2021-08-22T04:37:28Z")

</div>

初歩的な質問ですみません。似たような質問・回答を見ましたが原因がわからないので質問させていただきます。

C++のクラスをブループリント上で変数として定義し、関数を呼び出したいです。  
実際にC++でAActorを継承したクラスをブループリントの変数（オブジェクト参照）として宣言し、  
ブループリントから関数を呼び出したところ、このエラーが出ました。

UnrealEditorを再起動すると一時的に直り、何度かプレイするとまた同じエラーが出るようになります。  
最小限の構成で確認するため、新規プロジェクトで作成し、他にアクタなどは配置していません。

[https://dotup.org/uploda/dotup.org2569022.png](https://dotup.org/uploda/dotup.org2569022.png)

エラー内容：  
ブループリントランタイム エラー:“プロパティ ActorArg の読み取りを試行するためのアクセスはありません”。 ブループリント: BP\_Test 関数: Execute Ubergraph BP Test グラフ: EventGraph ノード: Log Test

MyActor.h

```
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"

UCLASS()
class AMyActor : public AActor
{
	GENERATED_BODY()

public:
	// Sets default values for this actor's properties
	AMyActor();

	UFUNCTION(BlueprintCallable)
	void LogTest();
};

```

MyActor.cpp

```
// Fill out your copyright notice in the Description page of Project Settings.

#include "MyActor.h"

// Sets default values
AMyActor::AMyActor()
{
	// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = false;
}

void AMyActor::LogTest()
{
	UE_LOG(LogTemp, Log, TEXT("log test!"));
}
```

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [August 23, 2021, 1:15pm UTC](https://forums.unrealengine.com/t/topic/487799/2 "2021-08-23T13:15:45Z")

</div>

Hello! Have Checked that and everything is Ok, no any errors. It can be BP old compilation cache maybe… You can try to clear up the proj and test again…

---

<div class="post-metadata">

**Author:** ![tmtok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmtok](https://forums.unrealengine.com/u/tmtok)\
**Post date:** [August 24, 2021, 4:16pm UTC](https://forums.unrealengine.com/t/topic/487799/3 "2021-08-24T16:16:01Z")

</div>

Thanks for your comment! I just tried it on another PC (mac) and it worked.  
I tried deleting the cache and recreate the project on the problematic PC, but it still doesn’t work.  
I’ll re-install UE4 and try some more…
