From 5a77b9cb37190cff80eb27a70264b42fdb29fc5a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 17:58:47 +0200 Subject: [PATCH] Update scene document version and add player start movement template --- src/document/migrate-scene-document.ts | 7 ++++++- src/document/scene-document.ts | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/document/migrate-scene-document.ts b/src/document/migrate-scene-document.ts index c479e84c..26adce7d 100644 --- a/src/document/migrate-scene-document.ts +++ b/src/document/migrate-scene-document.ts @@ -20,10 +20,12 @@ import { type ProjectAssetRecord } from "../assets/project-assets"; import { + DEFAULT_PLAYER_START_MOVEMENT_CAPABILITIES, DEFAULT_PLAYER_START_GAMEPAD_BINDINGS, DEFAULT_PLAYER_START_KEYBOARD_BINDINGS, createPlayerStartColliderSettings, createPlayerStartInputBindings, + createPlayerStartMovementTemplate, createInteractableEntity, normalizeEntityName, createPointLightEntity, @@ -38,10 +40,12 @@ import { isPlayerStartGamepadCameraLookBinding, isPlayerStartGamepadBinding, isPlayerStartKeyboardBindingCode, + isPlayerStartMovementTemplateKind, isPlayerStartNavigationMode, type EntityInstance, type PlayerStartGamepadBinding, - type PlayerStartGamepadCameraLookBinding + type PlayerStartGamepadCameraLookBinding, + type PlayerStartMovementTemplateKind } from "../entities/entity-instances"; import { createPlayAnimationInteractionLink, @@ -95,6 +99,7 @@ import { SPATIAL_AUDIO_SCENE_DOCUMENT_VERSION, PROJECT_NAME_SCENE_DOCUMENT_VERSION, SCENE_DOCUMENT_VERSION, + STATIC_SIMPLE_MODEL_COLLIDERS_SCENE_DOCUMENT_VERSION, TRIGGER_ACTION_TARGET_FOUNDATION_SCENE_DOCUMENT_VERSION, RUNNER_LOADING_SCREEN_SCENE_DOCUMENT_VERSION, WATER_SURFACE_DISPLACEMENT_SCENE_DOCUMENT_VERSION, diff --git a/src/document/scene-document.ts b/src/document/scene-document.ts index 729463b3..4e6430ea 100644 --- a/src/document/scene-document.ts +++ b/src/document/scene-document.ts @@ -15,7 +15,9 @@ import { type WorldSettings } from "./world-settings"; -export const SCENE_DOCUMENT_VERSION = 30 as const; +export const SCENE_DOCUMENT_VERSION = 31 as const; +export const PLAYER_START_MOVEMENT_TEMPLATE_SCENE_DOCUMENT_VERSION = + 31 as const; export const STATIC_SIMPLE_MODEL_COLLIDERS_SCENE_DOCUMENT_VERSION = 30 as const; export const SCENE_EDITOR_PREFERENCES_SCENE_DOCUMENT_VERSION = 29 as const; export const PROJECT_NAME_SCENE_DOCUMENT_VERSION = 28 as const;