-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHiddenCamera.h
More file actions
47 lines (30 loc) · 903 Bytes
/
HiddenCamera.h
File metadata and controls
47 lines (30 loc) · 903 Bytes
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
47
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Camera/CameraActor.h"
#include "HiddenCamera.generated.h"
/**
*
*/
UCLASS()
class OBSERVATION2_API AHiddenCamera : public ACameraActor
{
GENERATED_BODY()
public:
AHiddenCamera();
virtual void BeginPlay() override;
UFUNCTION(BlueprintCallable, Category = "Hidden Camera")
void ShowHiddenCamera();
protected:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hidden Camera")
bool bIsVisible;
private:
UPROPERTY()
class ACameraActor* CameraActor;
UPROPERTY(EditAnywhere, Category = "Hidden Camera")
TSubclassOf<ACameraActor> CameraClass;
// Widget class reference
class UUserWidget* WidgetInstance;
UPROPERTY(EditAnywhere, Category = "UI")
TSubclassOf<UUserWidget> WidgetClass;
};