From c0b24c145e057a1f89327cb1f3646df30f5e6f49 Mon Sep 17 00:00:00 2001 From: AFeiYA <386665678@qq.com> Date: Wed, 13 Sep 2023 10:57:22 +0800 Subject: [PATCH] Scale factor --- editor/i18n/en/assets.js | 4 ++++ editor/i18n/zh/assets.js | 4 ++++ editor/inspector/assets/fbx/model.js | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+) diff --git a/editor/i18n/en/assets.js b/editor/i18n/en/assets.js index d2393bfd1bc..9a1afdd863d 100644 --- a/editor/i18n/en/assets.js +++ b/editor/i18n/en/assets.js @@ -196,6 +196,10 @@ module.exports = { "Warning: WebGL 1.0 platform doesn't support 'Repeat' filter for non-power-of-two textures(runtime fallback to 'Clamp'), effectively disabling features like the 'tilingOffset' property in many materials.", filterDiffenent: 'Filter settings do not match the configuration in {atlasFile} and may not take effect.', }, + scaleFactor: { + name: 'Scale Factor', + title:'Adjust model size', + }, fbx: { browse: 'Change Target', model: 'Model', diff --git a/editor/i18n/zh/assets.js b/editor/i18n/zh/assets.js index edf9f8acf94..d56f74bc945 100644 --- a/editor/i18n/zh/assets.js +++ b/editor/i18n/zh/assets.js @@ -196,6 +196,10 @@ module.exports = { '警告:WebGL 1.0 平台不支持非 2 次幂贴图的 Repeat 过滤模式,运行时会自动改为 Clamp 模式,这会使材质的 tilingOffset 等属性完全失效。', filterDiffenent: 'Filter 设置与 {atlasFile} 中的配置不符,可能无法生效。', }, + scaleFactor: { + name: '缩放因子', + title: '调整模型导入大小', + }, fbx: { browse: '更换贴图', model: '模型', diff --git a/editor/inspector/assets/fbx/model.js b/editor/inspector/assets/fbx/model.js index 770af79969d..2bb6aec588a 100644 --- a/editor/inspector/assets/fbx/model.js +++ b/editor/inspector/assets/fbx/model.js @@ -4,6 +4,11 @@ const { updateElementReadonly, updateElementInvalid, getPropValue, setPropValue exports.template = /* html */`