Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ACustomCamera_RGBD::ACustomCamera_RGBD()
- : resolution_X(1000)
- , resolution_Y(1000)
- , fps(30.0f)
- {
- // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
- PrimaryActorTick.bCanEverTick = true;
- MyRenderTarget = CreateDefaultSubobject<UTextureRenderTarget2D>(TEXT("RenderTargetForCamera"));
- USceneCaptureComponent2D* tempObject = GetCaptureComponent2D();
- GetCaptureComponent2D()->TextureTarget = MyRenderTarget;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement