From 60f600ac7a947aaceafa89bdeee0147eb1c4f9d1 Mon Sep 17 00:00:00 2001 From: badlogic Date: Wed, 9 Oct 2019 14:24:37 +0200 Subject: [PATCH 1/2] [ue4] Materials on SkeletonRendererComponent are now blueprint read and writeable. This allows setting dynamic material instances at runtime. Closes #1516. --- .../SpinePlugin/Public/SpineSkeletonRendererComponent.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Public/SpineSkeletonRendererComponent.h b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Public/SpineSkeletonRendererComponent.h index aaf5d921a..d2e74dad5 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Public/SpineSkeletonRendererComponent.h +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Public/SpineSkeletonRendererComponent.h @@ -50,16 +50,16 @@ public: void UpdateRenderer(USpineSkeletonComponent* Skeleton); // Material Instance parents - UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly) + UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite) UMaterialInterface* NormalBlendMaterial; - UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly) + UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite) UMaterialInterface* AdditiveBlendMaterial; - UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly) + UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite) UMaterialInterface* MultiplyBlendMaterial; - UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly) + UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite) UMaterialInterface* ScreenBlendMaterial; // Need to hold on to the dynamic instances, or the GC will kill us while updating them From 7e7306ad7d0321344945f09db5f664d2f8847429 Mon Sep 17 00:00:00 2001 From: badlogic Date: Wed, 9 Oct 2019 14:25:20 +0200 Subject: [PATCH 2/2] Updated CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 186d2dbde..5ce180017 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -103,6 +103,7 @@ * Removed dependency on `RHI`, `RenderCore`, and `ShaderCore`. * Re-importing atlases and their textures now works consistently in all situations. * Added mix-and-match example to demonstrate the new Skin API. +* Materials on `SkeletonRendererComponent` are now blueprint read and writeable. This allows setting dynamic material instances at runtime ## C# ## * **Breaking changes**