Skip to content
Snippets Groups Projects
Select Git revision
  • b0060790008e0b64eb3239143e842953a9a74675
  • 5.4 default protected
  • 5.5
  • dev/5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
20 results

Grabable.h

Blame
  • Grabable.h 750 B
    // Fill out your copyright notice in the Description page of Project Settings.
    
    #pragma once
    
    #include "CoreMinimal.h"
    #include "Object.h"
    #include "UObject/Interface.h"
    #include "Grabable.generated.h"
    
    UINTERFACE(BlueprintType)
    class DISPLAYCLUSTEREXTENSIONS_API UGrabable : public UInterface
    {
    	// has to be empty, this is Unreals syntax to make it visible in blueprints
    	GENERATED_UINTERFACE_BODY()
    };
    
    class IGrabable
    {
    	GENERATED_IINTERFACE_BODY()
    
    public:
    	// function that will be called when grabbed by a pawn
    	UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Gameplay)
    	void OnGrabbed();
    	
    	// called when pawn released the object
    	UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Gameplay)
    	void OnReleased();
    
    };