mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fix SkeletonGraphic texture updating.
This commit is contained in:
parent
76b7e245bd
commit
f3e544319d
@ -126,8 +126,8 @@ namespace Spine.Unity {
|
|||||||
public Texture OverrideTexture {
|
public Texture OverrideTexture {
|
||||||
get { return overrideTexture; }
|
get { return overrideTexture; }
|
||||||
set {
|
set {
|
||||||
canvasRenderer.SetTexture(value);
|
|
||||||
overrideTexture = value;
|
overrideTexture = value;
|
||||||
|
canvasRenderer.SetTexture(this.mainTexture); // Refresh canvasRenderer's texture. Make sure it handles null.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public override Texture mainTexture {
|
public override Texture mainTexture {
|
||||||
@ -236,6 +236,7 @@ namespace Spine.Unity {
|
|||||||
};
|
};
|
||||||
|
|
||||||
meshBuffers = new DoubleBuffered<MeshRendererBuffers.SmartMesh>();
|
meshBuffers = new DoubleBuffered<MeshRendererBuffers.SmartMesh>();
|
||||||
|
canvasRenderer.SetTexture(this.mainTexture); // Needed for overwriting initializations.
|
||||||
|
|
||||||
// Set the initial Skin and Animation
|
// Set the initial Skin and Animation
|
||||||
if (!string.IsNullOrEmpty(initialSkinName))
|
if (!string.IsNullOrEmpty(initialSkinName))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user