fix(ShaderBake): 修正离屏视图矩阵与侧栏数值不可见

- 投影矩阵是 OpenGL 约定(相机朝 -Z),而 TRS.inverse 给的是 Unity 的 +Z 朝前,
  两者拼起来几何全被裁剪,表现是"渲染成功但画面全透明";视图矩阵补上 Z 镜像
- 侧栏半宽/三分之一宽的字段按内容定基宽,标题又占 ~120px,输入框被挤出可视区;
  改成 flex-basis:0 + 收窄标题 + 输入区 min-width:0,并缩短过长标签
- 数值绑定改用 INotifyValueChanged<T> 按名字绑定,不再依赖跨版本会换命名空间的具体字段类型
This commit is contained in:
2026-11-05 19:17:57 +08:00
parent bede1f8a8b
commit 7c0f35fdcb
4 changed files with 81 additions and 32 deletions
+24
View File
@@ -127,6 +127,7 @@
}
.detail-pane > .unity-scroll-view__content-container {
width: 100%;
flex-shrink: 0;
}
@@ -167,9 +168,14 @@
min-width: 0;
}
/*
* flex-basis: 0 是关键:默认 auto 会按内容宽度(标题 + 输入框)定基宽,
* 一行两栏/三栏加起来必然超过侧栏宽度,输入框被挤到可视区外——表现就是"数值文本不显示"。
*/
.field-half {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
min-width: 0;
margin-right: 4px;
}
@@ -177,6 +183,7 @@
.field-third {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
min-width: 0;
margin-right: 4px;
}
@@ -184,11 +191,28 @@
.field-quarter {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
min-width: 0;
margin-right: 3px;
font-size: 10px;
}
/* 2021.3 的字段标题默认吃 120px 左右,窄栏里会把输入区压没;侧栏内统一收窄 */
.detail-content .unity-base-field__label,
.detail-content .unity-text-field__label,
.detail-content .unity-base-text-field__label {
min-width: 30px;
flex-shrink: 1;
overflow: hidden;
}
.detail-content .unity-base-field__input,
.detail-content .unity-text-field__input,
.detail-content .unity-base-text-field__input {
flex-shrink: 1;
min-width: 0;
}
/* ── 浏览图里的选中面片高亮 ── */
.face-overlay {
position: absolute;