mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +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 {
|
||||
get { return overrideTexture; }
|
||||
set {
|
||||
canvasRenderer.SetTexture(value);
|
||||
overrideTexture = value;
|
||||
canvasRenderer.SetTexture(this.mainTexture); // Refresh canvasRenderer's texture. Make sure it handles null.
|
||||
}
|
||||
}
|
||||
public override Texture mainTexture {
|
||||
@ -236,6 +236,7 @@ namespace Spine.Unity {
|
||||
};
|
||||
|
||||
meshBuffers = new DoubleBuffered<MeshRendererBuffers.SmartMesh>();
|
||||
canvasRenderer.SetTexture(this.mainTexture); // Needed for overwriting initializations.
|
||||
|
||||
// Set the initial Skin and Animation
|
||||
if (!string.IsNullOrEmpty(initialSkinName))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user