[unity] Fixed SkeletonRenderTexture meshFilter null when fix prefab override enabled. Closes #2608.

This commit is contained in:
Harald Csaszar 2024-08-22 17:35:53 +02:00
parent 6fa31a2903
commit 7066fd939f
2 changed files with 3 additions and 1 deletions

View File

@ -128,6 +128,8 @@ namespace Spine.Unity.Examples {
}
void RenderOntoQuad (SkeletonRenderer skeletonRenderer) {
if (meshFilter == null)
meshFilter = this.GetComponent<MeshFilter>();
Vector3 size = meshFilter.sharedMesh.bounds.size;
if (size.x == 0f || size.y == 0f) {
AssignNullMeshAtQuad();

View File

@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-unity-examples",
"displayName": "spine-unity Runtime Examples",
"description": "This plugin provides example scenes and scripts for the spine-unity runtime.",
"version": "4.2.35",
"version": "4.2.36",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",