mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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 () {
|
||||
if (!valid) return;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (Application.isPlaying)
|
||||
translator.Apply(skeleton);
|
||||
#else
|
||||
translator.Apply(skeleton);
|
||||
#endif
|
||||
|
||||
// UpdateWorldTransform and Bone Callbacks
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user