Files
UnrealEngineUWP/Engine/Source/Runtime/GeometryCache/Classes/GeometryCacheTrackTransformGroupAnimation.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

37 lines
1.2 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
#include "GeometryCacheTrack.h"
#include "GeometryCacheMeshData.h"
#include "GeometryCacheTrackTransformGroupAnimation.generated.h"
/** Derived GeometryCacheTrack class, used for Transform animation. */
UCLASS(collapsecategories, hidecategories = Object, BlueprintType, config = Engine)
class GEOMETRYCACHE_API UGeometryCacheTrack_TransformGroupAnimation : public UGeometryCacheTrack
{
GENERATED_UCLASS_BODY()
// Begin UObject interface.
virtual void GetResourceSizeEx(FResourceSizeEx& CumulativeResourceSize) override;
virtual void Serialize(FArchive& Ar) override;
// End UObject interface.
// Begin UGeometryCacheTrack interface.
virtual const bool UpdateMeshData(const float Time, const bool bLooping, int32& InOutMeshSampleIndex, FGeometryCacheMeshData*& OutMeshData) override;
// End UGeometryCacheTrack interface.
/**
* 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;
};