mirror of
https://github.com/storytold/EventCenterPlugin.git
synced 2026-10-09 00:09:42 +00:00
439968b8e7
* Skeletal meshes * Static meshes * Parent class for both
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#pragma once
|
|
|
|
// Unreal Core
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/NoExportTypes.h"
|
|
#include "Engine/EngineTypes.h"
|
|
|
|
// EventCenterPlugin
|
|
#include "SpawnableActor.h"
|
|
#include "SpawnableStaticMeshActor.generated.h"
|
|
|
|
DECLARE_LOG_CATEGORY_EXTERN(SpawnableStaticMeshActorLog, Log, All);
|
|
|
|
// NB(bt): "Blueprintable" seems to remove the ability to add BP event nodes.
|
|
UCLASS()
|
|
class EVENTCENTERPLUGIN_API ASpawnableStaticMeshActor : public ASpawnableActor
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
ASpawnableStaticMeshActor();
|
|
~ASpawnableStaticMeshActor();
|
|
|
|
/** Access to the static mesh component */
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SpawnableStaticMeshActor", meta = (AllowPrivateAccess = "true"))
|
|
class UStaticMeshComponent* BaseMeshComponent;
|
|
|
|
/** Set the static mesh. */
|
|
UFUNCTION(BlueprintCallable, Category = "SpawnableStaticMeshActor")
|
|
void SetSpawnableStaticMesh(UStaticMesh* staticMesh);
|
|
|
|
private:
|
|
/** Mesh to use */
|
|
//UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SpawnableActor", meta = (AllowPrivateAccess = "true"))
|
|
class UStaticMesh* BaseMesh;
|
|
};
|
|
|