UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateSound.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "UObject/Class.h"
9#include "SlateSound.generated.h"
10
14USTRUCT(BlueprintType)
16{
18
19public:
20
23
26
29
30public:
31
37 SLATECORE_API UObject* GetResourceObject( ) const;
38
43 {
44 ResourceObject = InResourceObject;
45 }
46
50 SLATECORE_API void StripLegacyData_DEPRECATED( );
51
55 SLATECORE_API bool SerializeFromMismatchedTag(struct FPropertyTag const& Tag, FStructuredArchive::FSlot Slot);
56
57public:
58
66 static SLATECORE_API FSlateSound FromName_DEPRECATED( const FName& SoundName );
67
68protected:
69
74 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sound, meta=(DisplayName="Sound", AllowedClasses="/Script/Engine.SoundBase"))
75 TObjectPtr<UObject> ResourceObject;
76
78 FName LegacyResourceName_DEPRECATED;
79
81 mutable TWeakObjectPtr<UObject> LegacyResourceObject_DEPRECATED;
82};
83
84
88{
89 enum
90 {
91 WithStructuredSerializeFromMismatchedTag = true,
92 };
93};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition NameTypes.h:617
Definition StructuredArchiveSlots.h:52
Definition Object.h:95
Definition PropertyTag.h:38
Definition SlateSound.h:16
SLATECORE_API FSlateSound & operator=(const FSlateSound &)
SLATECORE_API FSlateSound(const FSlateSound &)
void SetResourceObject(class UObject *InResourceObject)
Definition SlateSound.h:42
Definition ObjectPtr.h:488
Definition StructOpsTypeTraits.h:11
Definition StructOpsTypeTraits.h:46
Definition WeakObjectPtrTemplates.h:25