Interface EnvConfigOption

interface EnvConfigOption {
    activeScreenEnableTransition?: boolean;
    boxHelper?: BoxHelperOptions;
    cancelHighlight?: "none" | "clickOtherPosition" | "clickOtherEntity";
    cancelSelectMode?: "none" | "clickOtherPosition" | "clickOtherEntity";
    highlightColor?: ColorRepresentation;
    highlightOpacity?: number;
    popupBackgroundColor?: string;
    popupButtonColor?: string;
    sceneExitBlurTime?: number;
    unProjectOptions?: Record<string, UnProjectOpts>;
}

Properties

activeScreenEnableTransition?: boolean

切换场景有动画

boxHelper?: BoxHelperOptions

包围盒显示设置

cancelHighlight?: "none" | "clickOtherPosition" | "clickOtherEntity"

取消高亮模式(默认clickOtherPosition) none 不主动取消,需要调用代码取消高亮; clickOtherPosition 点击其他位置(不在此实体上面时)取消高亮; clickOtherEntity 点击选中其他实体时,取消高亮

cancelSelectMode?: "none" | "clickOtherPosition" | "clickOtherEntity"

取消选中模式(默认clickOtherPosition) none 不主动取消,需要调用代码取消选中; clickOtherPosition 点击其他位置(不在此实体上面时)取消选中; clickOtherEntity 点击选中其他实体时,取消选中

highlightColor?: ColorRepresentation

高亮颜色

highlightOpacity?: number

高亮透明度

popupBackgroundColor?: string

弹出框默认背景色

popupButtonColor?: string

弹出框默认关闭按钮颜色

sceneExitBlurTime?: number

场景退出时模糊时间(毫秒)

unProjectOptions?: Record<string, UnProjectOpts>

unProject屏幕坐标转世界坐标时,如果投影方式为undefined时,按不同的快捷键切换不同的投影方式 键值为键组合,如 "ShiftLeft + KeyR" , "none"表示无按键默认处理情况