Sorry for the late answer.
Sure.
- Make a blank new project (no starter content needed)
- Create 2 c++ classes BaseStat (UObject) and StatBlock (UActorComponent)
Source BaseStat.h:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Object.h"
#include "BaseStat.generated.h"
/**
*
*/
UCLASS(Blueprintable, BlueprintType, ClassGroup = (Custom), EditInlineNew, NonTransient, WithIn = StatBlock)
class TESTPROJECT3_API UBaseStat : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "StatDetail")
float TestValue;
};
Source BaseStat.cpp:
// Fill out your copyright notice in the Description page of Project Settings.
#include "TestProject3.h"
#include "BaseStat.h"