mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[ue4] Materials on SkeletonRendererComponent are now blueprint read and writeable. This allows setting dynamic material instances at runtime. Closes #1516.
This commit is contained in:
parent
f68ac18a82
commit
60f600ac7a
@ -50,16 +50,16 @@ public:
|
|||||||
void UpdateRenderer(USpineSkeletonComponent* Skeleton);
|
void UpdateRenderer(USpineSkeletonComponent* Skeleton);
|
||||||
|
|
||||||
// Material Instance parents
|
// Material Instance parents
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
UMaterialInterface* NormalBlendMaterial;
|
UMaterialInterface* NormalBlendMaterial;
|
||||||
|
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
UMaterialInterface* AdditiveBlendMaterial;
|
UMaterialInterface* AdditiveBlendMaterial;
|
||||||
|
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
UMaterialInterface* MultiplyBlendMaterial;
|
UMaterialInterface* MultiplyBlendMaterial;
|
||||||
|
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
UMaterialInterface* ScreenBlendMaterial;
|
UMaterialInterface* ScreenBlendMaterial;
|
||||||
|
|
||||||
// Need to hold on to the dynamic instances, or the GC will kill us while updating them
|
// Need to hold on to the dynamic instances, or the GC will kill us while updating them
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user