Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "GameFramework/Actor.h"
  7. #include "Engine/SceneCapture2D.h"
  8. #include "Engine/TextureRenderTarget2D.h"
  9. #include "CustomCamera_RGBD.generated.h"
  10.  
  11. UCLASS()
  12. class ARTEKMED_PRECLINICAL_API ACustomCamera_RGBD : public ASceneCapture2D
  13. {
  14.     GENERATED_BODY()
  15.    
  16. public:
  17.     // Sets default values for this actor's properties
  18.     ACustomCamera_RGBD();
  19.  
  20. protected:
  21.     // Called when the game starts or when spawned
  22.     virtual void BeginPlay() override;
  23. public:
  24.     // Called every frame
  25.     virtual void Tick(float DeltaTime) override;
  26.     UPROPERTY(EditAnywhere, Category="ImageParameters")
  27.     uint32 resolution_X;
  28.    
  29.     UPROPERTY(EditAnywhere, Category="ImageParameters")
  30.     uint32 resolution_Y;
  31.  
  32.     UPROPERTY(EditAnywhere, Category="ImageParameters")
  33.     float fps;
  34.  
  35.     UPROPERTY(EditAnywhere, Category="DataStorage")
  36.     FString savePath;
  37.  
  38.     UPROPERTY(EditAnywhere, Category="DataStorage")
  39.     UTextureRenderTarget2D* MyRenderTarget;
  40. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement