Add 'Set Look At Changed' as a temporary way for a widget to refresh itself.
This commit is contained in:
Binary file not shown.
@@ -360,6 +360,12 @@ void ALuprexGameModeBase::SetLookAt(const UObject *Context, const FHitResult &Hi
|
||||
Mode->CurrentLookAt = HitResult;
|
||||
}
|
||||
|
||||
void ALuprexGameModeBase::SetLookAtChanged(const UObject *Context)
|
||||
{
|
||||
ALuprexGameModeBase *Mode = FromContext(Context);
|
||||
Mode->MustCallLookAtChanged = true;
|
||||
}
|
||||
|
||||
FVector2D ALuprexGameModeBase::GetLookAtPixel(const UObject *Context)
|
||||
{
|
||||
ALuprexGameModeBase *Mode = FromContext(Context);
|
||||
|
||||
@@ -80,6 +80,9 @@ public:
|
||||
|
||||
UFUNCTION(BlueprintPure, meta = (WorldContext = "Context"),Category = "Luprex|Look-At Detection")
|
||||
static FVector2D GetLookAtPixel(const UObject *Context);
|
||||
|
||||
UFUNCTION(BlueprintCallable, meta = (WorldContext = "Context"), Category = "Luprex|Look-At Detection")
|
||||
static void SetLookAtChanged(const UObject* Context);
|
||||
|
||||
//
|
||||
// Look-At Related Events
|
||||
|
||||
Reference in New Issue
Block a user