mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Handle Unity Animator warning in edit mode
This commit is contained in:
parent
03f8313435
commit
0f620d9c6c
@ -75,7 +75,12 @@ namespace Spine.Unity {
|
|||||||
public void Update () {
|
public void Update () {
|
||||||
if (!valid) return;
|
if (!valid) return;
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (Application.isPlaying)
|
||||||
translator.Apply(skeleton);
|
translator.Apply(skeleton);
|
||||||
|
#else
|
||||||
|
translator.Apply(skeleton);
|
||||||
|
#endif
|
||||||
|
|
||||||
// UpdateWorldTransform and Bone Callbacks
|
// UpdateWorldTransform and Bone Callbacks
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user