mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
feat:add clear method for AnimationGraphPartialPreviewer (#15441)
* feat : add clearVariables method for AnimationGraphPartialPreviewer * clear motionRecords too
This commit is contained in:
@@ -27,6 +27,11 @@ class AnimationGraphPartialPreviewer {
|
||||
this._dummyAnimationController.node.destroy();
|
||||
}
|
||||
|
||||
public clear() {
|
||||
this._varInstances = {};
|
||||
this._motionRecords = [];
|
||||
}
|
||||
|
||||
public evaluate() {
|
||||
const { _evaluationContext: evaluationContext } = this;
|
||||
const pose = this.doEvaluate(evaluationContext);
|
||||
|
||||
Reference in New Issue
Block a user