@ -0,0 +1,6 @@
|
||||
#include "CSPrimaryDataAsset.h"
|
||||
|
||||
FPrimaryAssetId UCSPrimaryDataAsset::GetPrimaryAssetId() const
|
||||
{
|
||||
return FPrimaryAssetId(AssetName, GetFName());
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Engine/DataAsset.h"
|
||||
#include "CSPrimaryDataAsset.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class UNREALSHARPCORE_API UCSPrimaryDataAsset : public UPrimaryDataAsset
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
// UPrimaryDataAsset interface implementation
|
||||
virtual FPrimaryAssetId GetPrimaryAssetId() const override;
|
||||
// End of implementation
|
||||
|
||||
protected:
|
||||
|
||||
// The name of the asset which AssetManager will use to identify this asset
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
FName AssetName;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user