A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
BaseGrippableStoryVolume.h
Go to the documentation of this file.
1// Copyright(c) 2018 PixoVR, LLC. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Components/BoxComponent.h"
8#include "BaseGrippableStoryVolume.generated.h"
9
13UCLASS()
15{
16 GENERATED_BODY()
17
18public:
20
24 virtual void ObjectDeactivated_Implementation() override;
25
26 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Components")
27 UBoxComponent* BoxCollisionComponent;
28
29 UPROPERTY(EditAnywhere, BlueprintReadWrite)
30 bool AlwaysActive;
31
35 UFUNCTION(BlueprintCallable, Category = "GrippableVolume")
36 void SetIsActive(bool bNewIsActive);
37
38private:
39 bool bIsActive;
40};
Base class for grippable story actors that can be interacted with hands.
virtual void ObjectDeactivated_Implementation() override
Implementation of the ObjectDeactivated function from the IPixoVRStoryObject interface.
This class can be used for cases when the user needs to apply Grip to specific areas that can have no...
UBoxComponent * BoxCollisionComponent
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Components")
GENERATED_BODY()
bool AlwaysActive
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsActive
Determines whether the volume is active, use SetIsActive to update its value.