Sorry, I don’t know English very well, but I’ll try to describe my problem.
- I have a class called
MyObject
. I created an instance of it in a Blueprint.
#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "MyObject.generated.h"
/**
*
*/
UCLASS(Blueprintable, BlueprintType)
class MOVE_API UMyObject : public UObject
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, Category = "Input")
float Speed = 0;
};
- I also have a second class,
ACPP_Pawn_Move
, where I want to get a reference to the instance ofMyObject
.
UCLASS()
class MOVE_API ACPP_Pawn_Move : public APawn
{
GENERATED_BODY()
public:
ACPP_Pawn_Move();
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "References")
class UMyObject * Condition;
}
However, I can’t link them together through the editor.