mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 18:26:12 +08:00
[unity] Fixed SkeletonRenderTexture meshFilter null when fix prefab override enabled. Closes #2608.
This commit is contained in:
parent
6fa31a2903
commit
7066fd939f
@ -128,6 +128,8 @@ namespace Spine.Unity.Examples {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RenderOntoQuad (SkeletonRenderer skeletonRenderer) {
|
void RenderOntoQuad (SkeletonRenderer skeletonRenderer) {
|
||||||
|
if (meshFilter == null)
|
||||||
|
meshFilter = this.GetComponent<MeshFilter>();
|
||||||
Vector3 size = meshFilter.sharedMesh.bounds.size;
|
Vector3 size = meshFilter.sharedMesh.bounds.size;
|
||||||
if (size.x == 0f || size.y == 0f) {
|
if (size.x == 0f || size.y == 0f) {
|
||||||
AssignNullMeshAtQuad();
|
AssignNullMeshAtQuad();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-unity-examples",
|
"name": "com.esotericsoftware.spine.spine-unity-examples",
|
||||||
"displayName": "spine-unity Runtime Examples",
|
"displayName": "spine-unity Runtime Examples",
|
||||||
"description": "This plugin provides example scenes and scripts for the spine-unity runtime.",
|
"description": "This plugin provides example scenes and scripts for the spine-unity runtime.",
|
||||||
"version": "4.2.35",
|
"version": "4.2.36",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user