mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[ue] Closes #2728, adhere to new API in UE 5.4+
This commit is contained in:
parent
ddfa736ae2
commit
ed0206dde3
@ -70,6 +70,14 @@ void USpineSkeletonDataAsset::PostInitProperties() {
|
||||
Super::PostInitProperties();
|
||||
}
|
||||
|
||||
#if ((ENGINE_MAJOR_VERSION >= 5) && (ENGINE_MINOR_VERSION >= 4))
|
||||
void USpineSkeletonDataAsset::GetAssetRegistryTags(FAssetRegistryTagsContext Context) const {
|
||||
if (importData) {
|
||||
Context.AddTag(FAssetRegistryTag(SourceFileTagName(), importData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden));
|
||||
}
|
||||
Super::GetAssetRegistryTags(Context);
|
||||
}
|
||||
#else
|
||||
void USpineSkeletonDataAsset::GetAssetRegistryTags(
|
||||
TArray<FAssetRegistryTag> &OutTags) const {
|
||||
if (importData) {
|
||||
@ -80,6 +88,7 @@ void USpineSkeletonDataAsset::GetAssetRegistryTags(
|
||||
|
||||
Super::GetAssetRegistryTags(OutTags);
|
||||
}
|
||||
#endif
|
||||
|
||||
void USpineSkeletonDataAsset::Serialize(FArchive &Ar) {
|
||||
Super::Serialize(Ar);
|
||||
|
||||
@ -114,8 +114,12 @@ protected:
|
||||
class UAssetImportData *importData = nullptr;
|
||||
|
||||
virtual void PostInitProperties() override;
|
||||
virtual void
|
||||
GetAssetRegistryTags(TArray<FAssetRegistryTag> &OutTags) const override;
|
||||
#if ((ENGINE_MAJOR_VERSION >= 5) && (ENGINE_MINOR_VERSION >= 4))
|
||||
virtual void GetAssetRegistryTags(FAssetRegistryTagsContext Context) const override;
|
||||
#else
|
||||
virtual void GetAssetRegistryTags(TArray<FAssetRegistryTag> &OutTags) const override;
|
||||
#endif
|
||||
|
||||
virtual void Serialize(FArchive &Ar) override;
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user