fix: 优化空格播放和截图角色标签对不上

This commit is contained in:
2026-09-17 19:39:24 +08:00
parent 8d67f17a84
commit e66e3374bf
19 changed files with 633 additions and 58 deletions

View File

@@ -42,16 +42,27 @@ export const DEFAULT_DIRECTOR_TRANSFORM: DirectorTransform = {
scale: [1, 1, 1],
};
/**
* 地面默认颜色:深灰。
* 默认场景与「旧工程迁移」共用这一份,不要在两处各写一个色值。
*/
export const DEFAULT_GROUND_COLOR = "#303640";
export interface SceneSettings {
scale: number;
position: [number, number, number];
rotation: [number, number, number];
/** 天空(背景)颜色:没接全景图时铺满整个视口 */
backgroundColor: string;
panoramaYaw: number;
panoramaRadius: number;
showLabels: boolean;
/** 截图 / 视频导出时是否把视口网格一起带进画面(默认 false:导出时藏起网格,更干净) */
captureShowGrid: boolean;
snapToGrid: boolean;
showGround: boolean;
/** 地面颜色:和天空颜色一样属于工程设置,可在场景面板里改 */
groundColor: string;
groundOpacity: number;
groundHeight: number;
}