UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MediaSourceOptions.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Map.h"
7#include "CoreTypes.h"
11#include "UObject/NameTypes.h"
12#include "UObject/Object.h"
16
17#include "MediaSourceOptions.generated.h"
18
20USTRUCT(BlueprintType)
22{
24
25
29 UPROPERTY(EditAnywhere, Category = "Media Cache")
30 bool bOverride = false;
31
37 UPROPERTY(EditAnywhere, Category = "Media Cache")
38 float TimeToLookAhead = 0.2f;
39
40
41 inline bool operator==(const FMediaSourceCacheSettings& Other) const
42 {
43 return (Other.bOverride == bOverride) && FMath::IsNearlyEqual(Other.TimeToLookAhead, TimeToLookAhead);
44 }
45
46 inline bool operator!=(const FMediaSourceCacheSettings& Other) const
47 {
48 return !(*this == Other);
49 }
50};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
@ false
Definition radaudio_common.h:23
static UE_FORCEINLINE_HINT bool IsNearlyEqual(float A, float B, float ErrorTolerance=UE_SMALL_NUMBER)
Definition UnrealMathUtility.h:388
Definition MediaSourceOptions.h:22
bool operator!=(const FMediaSourceCacheSettings &Other) const
Definition MediaSourceOptions.h:46