-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Live2D/develop
Update to Cubism 5 SDK for Unreal Engine R1 alpha4
- Loading branch information
Showing
50 changed files
with
1,440 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
Source/Live2DCubismFramework/Private/DisplayInfo/CubismDisplayInfo3Json.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright(c) Live2D Inc. All rights reserved. | ||
* | ||
* Use of this source code is governed by the Live2D Open Software license | ||
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. | ||
*/ | ||
|
||
|
||
#include "DisplayInfo/CubismDisplayInfo3Json.h" | ||
|
||
void UCubismDisplayInfo3Json::PostInitProperties() | ||
{ | ||
#if WITH_EDITORONLY_DATA | ||
if (!HasAnyFlags(RF_ClassDefaultObject)) | ||
{ | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
#endif | ||
Super::PostInitProperties(); | ||
} | ||
|
||
#if WITH_EDITORONLY_DATA | ||
void UCubismDisplayInfo3Json::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const | ||
{ | ||
if (AssetImportData) | ||
{ | ||
OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); | ||
} | ||
|
||
Super::GetAssetRegistryTags(OutTags); | ||
} | ||
void UCubismDisplayInfo3Json::Serialize(FArchive& Ar) | ||
{ | ||
Super::Serialize(Ar); | ||
|
||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !AssetImportData) | ||
{ | ||
// AssetImportData should always be valid | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
} | ||
#endif |
42 changes: 42 additions & 0 deletions
42
Source/Live2DCubismFramework/Private/Expression/CubismExp3Json.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright(c) Live2D Inc. All rights reserved. | ||
* | ||
* Use of this source code is governed by the Live2D Open Software license | ||
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. | ||
*/ | ||
|
||
|
||
#include "Expression/CubismExp3Json.h" | ||
|
||
void UCubismExp3Json::PostInitProperties() | ||
{ | ||
#if WITH_EDITORONLY_DATA | ||
if (!HasAnyFlags(RF_ClassDefaultObject)) | ||
{ | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
#endif | ||
Super::PostInitProperties(); | ||
} | ||
|
||
#if WITH_EDITORONLY_DATA | ||
void UCubismExp3Json::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const | ||
{ | ||
if (AssetImportData) | ||
{ | ||
OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); | ||
} | ||
|
||
Super::GetAssetRegistryTags(OutTags); | ||
} | ||
void UCubismExp3Json::Serialize(FArchive& Ar) | ||
{ | ||
Super::Serialize(Ar); | ||
|
||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !AssetImportData) | ||
{ | ||
// AssetImportData should always be valid | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
Source/Live2DCubismFramework/Private/Model/CubismModel3Json.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright(c) Live2D Inc. All rights reserved. | ||
* | ||
* Use of this source code is governed by the Live2D Open Software license | ||
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. | ||
*/ | ||
|
||
|
||
#include "Model/CubismModel3Json.h" | ||
|
||
void UCubismModel3Json::PostInitProperties() | ||
{ | ||
#if WITH_EDITORONLY_DATA | ||
if (!HasAnyFlags(RF_ClassDefaultObject)) | ||
{ | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
#endif | ||
Super::PostInitProperties(); | ||
} | ||
|
||
#if WITH_EDITORONLY_DATA | ||
void UCubismModel3Json::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const | ||
{ | ||
if (AssetImportData) | ||
{ | ||
OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); | ||
} | ||
|
||
Super::GetAssetRegistryTags(OutTags); | ||
} | ||
void UCubismModel3Json::Serialize(FArchive& Ar) | ||
{ | ||
Super::Serialize(Ar); | ||
|
||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !AssetImportData) | ||
{ | ||
// AssetImportData should always be valid | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
} | ||
#endif |
42 changes: 42 additions & 0 deletions
42
Source/Live2DCubismFramework/Private/Motion/CubismMotion3Json.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright(c) Live2D Inc. All rights reserved. | ||
* | ||
* Use of this source code is governed by the Live2D Open Software license | ||
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. | ||
*/ | ||
|
||
|
||
#include "Motion/CubismMotion3Json.h" | ||
|
||
void UCubismMotion3Json::PostInitProperties() | ||
{ | ||
#if WITH_EDITORONLY_DATA | ||
if (!HasAnyFlags(RF_ClassDefaultObject)) | ||
{ | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
#endif | ||
Super::PostInitProperties(); | ||
} | ||
|
||
#if WITH_EDITORONLY_DATA | ||
void UCubismMotion3Json::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const | ||
{ | ||
if (AssetImportData) | ||
{ | ||
OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); | ||
} | ||
|
||
Super::GetAssetRegistryTags(OutTags); | ||
} | ||
void UCubismMotion3Json::Serialize(FArchive& Ar) | ||
{ | ||
Super::Serialize(Ar); | ||
|
||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !AssetImportData) | ||
{ | ||
// AssetImportData should always be valid | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
} | ||
#endif |
42 changes: 42 additions & 0 deletions
42
Source/Live2DCubismFramework/Private/Physics/CubismPhysics3Json.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright(c) Live2D Inc. All rights reserved. | ||
* | ||
* Use of this source code is governed by the Live2D Open Software license | ||
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. | ||
*/ | ||
|
||
|
||
#include "Physics/CubismPhysics3Json.h" | ||
|
||
void UCubismPhysics3Json::PostInitProperties() | ||
{ | ||
#if WITH_EDITORONLY_DATA | ||
if (!HasAnyFlags(RF_ClassDefaultObject)) | ||
{ | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
#endif | ||
Super::PostInitProperties(); | ||
} | ||
|
||
#if WITH_EDITORONLY_DATA | ||
void UCubismPhysics3Json::GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const | ||
{ | ||
if (AssetImportData) | ||
{ | ||
OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) ); | ||
} | ||
|
||
Super::GetAssetRegistryTags(OutTags); | ||
} | ||
void UCubismPhysics3Json::Serialize(FArchive& Ar) | ||
{ | ||
Super::Serialize(Ar); | ||
|
||
if (Ar.IsLoading() && Ar.UEVer() < VER_UE4_ASSET_IMPORT_DATA_AS_JSON && !AssetImportData) | ||
{ | ||
// AssetImportData should always be valid | ||
AssetImportData = NewObject<UAssetImportData>(this, TEXT("AssetImportData")); | ||
} | ||
} | ||
#endif |
Oops, something went wrong.