mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 03:06:55 +08:00
[ts][player] Add startRendering method to restart rendering, if it was stopped.
This commit is contained in:
parent
60f3aeabfc
commit
da05fb8f92
@ -936,6 +936,11 @@ export class SpinePlayer implements Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
startRendering () {
|
||||||
|
this.stopRequestAnimationFrame = false;
|
||||||
|
requestAnimationFrame(() => this.drawFrame());
|
||||||
|
}
|
||||||
|
|
||||||
stopRendering () {
|
stopRendering () {
|
||||||
this.stopRequestAnimationFrame = true;
|
this.stopRequestAnimationFrame = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user