Implement runtime refresh for NPC collections
This commit is contained in:
@@ -193,6 +193,7 @@ import {
|
||||
import {
|
||||
commitRuntimeScheduleSyncResult,
|
||||
createRuntimeScheduleSyncContext,
|
||||
refreshRuntimeNpcCollections,
|
||||
syncRuntimeSceneScheduleToClock,
|
||||
type RuntimeScheduleSyncContext
|
||||
} from "./runtime-schedule-sync";
|
||||
@@ -5251,6 +5252,14 @@ export class RuntimeHost {
|
||||
}
|
||||
}
|
||||
|
||||
private refreshRuntimeNpcCollections() {
|
||||
if (this.runtimeScene === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
refreshRuntimeNpcCollections(this.runtimeScene);
|
||||
}
|
||||
|
||||
private refreshCollisionWorldForNpcSchedule() {
|
||||
if (this.runtimeScene === null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user