mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24: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 () {
|
||||
this.stopRequestAnimationFrame = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user