mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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();
|
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(
|
void USpineSkeletonDataAsset::GetAssetRegistryTags(
|
||||||
TArray<FAssetRegistryTag> &OutTags) const {
|
TArray<FAssetRegistryTag> &OutTags) const {
|
||||||
if (importData) {
|
if (importData) {
|
||||||
@ -80,6 +88,7 @@ void USpineSkeletonDataAsset::GetAssetRegistryTags(
|
|||||||
|
|
||||||
Super::GetAssetRegistryTags(OutTags);
|
Super::GetAssetRegistryTags(OutTags);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void USpineSkeletonDataAsset::Serialize(FArchive &Ar) {
|
void USpineSkeletonDataAsset::Serialize(FArchive &Ar) {
|
||||||
Super::Serialize(Ar);
|
Super::Serialize(Ar);
|
||||||
|
|||||||
@ -114,8 +114,12 @@ protected:
|
|||||||
class UAssetImportData *importData = nullptr;
|
class UAssetImportData *importData = nullptr;
|
||||||
|
|
||||||
virtual void PostInitProperties() override;
|
virtual void PostInitProperties() override;
|
||||||
virtual void
|
#if ((ENGINE_MAJOR_VERSION >= 5) && (ENGINE_MINOR_VERSION >= 4))
|
||||||
GetAssetRegistryTags(TArray<FAssetRegistryTag> &OutTags) const override;
|
virtual void GetAssetRegistryTags(FAssetRegistryTagsContext Context) const override;
|
||||||
|
#else
|
||||||
|
virtual void GetAssetRegistryTags(TArray<FAssetRegistryTag> &OutTags) const override;
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void Serialize(FArchive &Ar) override;
|
virtual void Serialize(FArchive &Ar) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user