mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed NullReferenceException when SkeletonGraphic SkeletonDataAsset is null. Closes #2294.
This commit is contained in:
parent
9d0c069f5d
commit
72e4c2915f
@ -307,6 +307,7 @@ namespace Spine.Unity {
|
||||
|
||||
public override void Rebuild (CanvasUpdate update) {
|
||||
base.Rebuild(update);
|
||||
if (!this.IsValid) return;
|
||||
if (canvasRenderer.cull) return;
|
||||
if (update == CanvasUpdate.PreRender) {
|
||||
if (requiresInstructionUpate) PrepareInstructionsAndRenderers(isInRebuild: true);
|
||||
@ -401,6 +402,7 @@ namespace Spine.Unity {
|
||||
}
|
||||
|
||||
public void LateUpdate () {
|
||||
if (!this.IsValid) return;
|
||||
// instantiation can happen from Update() after this component, leading to a missing Update() call.
|
||||
if (!wasUpdatedAfterInit) Update(0);
|
||||
if (freeze) return;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.urp-shaders",
|
||||
"displayName": "Spine Universal RP Shaders",
|
||||
"description": "This plugin provides universal render pipeline (URP) shaders for the spine-unity runtime.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime, version 4.1.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)",
|
||||
"version": "4.1.12",
|
||||
"version": "4.1.13",
|
||||
"unity": "2019.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user