mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 00:06:42 +08:00
[unity] Added null checks at BoundingBoxFollower classes to handle SkeletonData not being assigned.
This commit is contained in:
parent
f1af1d5bf1
commit
6d83190946
@ -115,6 +115,8 @@ namespace Spine.Unity {
|
||||
nameTable.Clear();
|
||||
|
||||
var skeleton = skeletonRenderer.skeleton;
|
||||
if (skeleton == null)
|
||||
return;
|
||||
slot = skeleton.FindSlot(slotName);
|
||||
int slotIndex = skeleton.FindSlotIndex(slotName);
|
||||
|
||||
|
||||
@ -115,6 +115,8 @@ namespace Spine.Unity {
|
||||
nameTable.Clear();
|
||||
|
||||
var skeleton = skeletonGraphic.Skeleton;
|
||||
if (skeleton == null)
|
||||
return;
|
||||
slot = skeleton.FindSlot(slotName);
|
||||
int slotIndex = skeleton.FindSlotIndex(slotName);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user