-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFloatCurveActor.h
More file actions
46 lines (31 loc) · 1.01 KB
/
FloatCurveActor.h
File metadata and controls
46 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "TimelineHandleComponent.h"
#include "FloatCurveActor.generated.h"
UCLASS()
class TIMELINEPLUGINDEMO_API AFloatCurveActor : public AActor
{
GENERATED_BODY()
private:
/** Moves the Actor - must be marked as UFUNCTION, otherwise it won't fire */
UFUNCTION()
void MoveActor(FVector NewLocation);
/** Rotates the Actor - must be marked as UFUNCTION, otherwise it won't fire */
UFUNCTION()
void RotateActor(FRotator NewRotation);
protected:
UPROPERTY(VisibleAnywhere)
UStaticMeshComponent* SM;
/** The component that comes with the plugin */
UPROPERTY(VisibleAnywhere)
UTimelineHandleComponent* TimelineHandleComp;
/** The curve that we're going to play*/
UPROPERTY(EditAnywhere)
UCurveFloat* FloatCurve;
public:
// Sets default values for this actor's properties
AFloatCurveActor();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
};