mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
28 lines
764 B
C++
28 lines
764 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "Components/ActorComponent.h"
|
|
#include "ProceduralMeshComponent.h"
|
|
#include "SpineSkeletonComponent.h"
|
|
#include "SpineSkeletonRendererComponent.generated.h"
|
|
|
|
|
|
UCLASS( ClassGroup=(Spine), meta=(BlueprintSpawnableComponent) )
|
|
class SPINEPLUGIN_API USpineSkeletonRendererComponent : public UProceduralMeshComponent
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
USpineSkeletonRendererComponent (const FObjectInitializer& ObjectInitializer);
|
|
|
|
virtual void BeginPlay () override;
|
|
|
|
virtual void TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
|
|
|
protected:
|
|
void UpdateMesh (spSkeleton* skeleton);
|
|
|
|
bool updated;
|
|
};
|