2015-06-18 06:59:14 -04:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "GeometryCacheMeshData.h"
|
|
|
|
|
|
|
|
|
|
#include "GeometryCacheTrackTransformAnimation.generated.h"
|
|
|
|
|
|
|
|
|
|
/** Derived GeometryCacheTrack class, used for Transform animation. */
|
|
|
|
|
UCLASS(collapsecategories, hidecategories = Object, BlueprintType, config = Engine)
|
|
|
|
|
class GEOMETRYCACHE_API UGeometryCacheTrack_TransformAnimation : public UGeometryCacheTrack
|
|
|
|
|
{
|
|
|
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
|
|
2015-09-14 09:25:39 -04:00
|
|
|
//~ Begin UObject Interface.
|
2015-06-18 06:59:14 -04:00
|
|
|
virtual SIZE_T GetResourceSize(EResourceSizeMode::Type Mode) override;
|
|
|
|
|
virtual void Serialize(FArchive& Ar) override;
|
2015-09-14 09:25:39 -04:00
|
|
|
//~ End UObject Interface.
|
2015-06-18 06:59:14 -04:00
|
|
|
|
2015-09-14 09:25:39 -04:00
|
|
|
//~ Begin UGeometryCacheTrack Interface.
|
2015-06-18 06:59:14 -04:00
|
|
|
virtual const bool UpdateMeshData(const float Time, const bool bLooping, int32& InOutMeshSampleIndex, FGeometryCacheMeshData*& OutMeshData) override;
|
2015-09-14 09:25:39 -04:00
|
|
|
//~ End UGeometryCacheTrack Interface.
|
2015-06-18 06:59:14 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets/updates the MeshData for this track
|
|
|
|
|
*
|
|
|
|
|
* @param NewMeshData - GeometryCacheMeshData instance later used as the rendered mesh
|
|
|
|
|
*/
|
|
|
|
|
UFUNCTION()
|
|
|
|
|
void SetMesh(const FGeometryCacheMeshData& NewMeshData);
|
|
|
|
|
private:
|
|
|
|
|
FGeometryCacheMeshData MeshData;
|
|
|
|
|
};
|