create: Unity 预览看联接的 Ui,不看游戏 DLL
MemRelay-Operation: memory-save:sotf-preview-sample-clock-20261020 MemRelay-Resource: 2edfc9b9-639d-486c-b6e7-e06c953607fc
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
---
|
||||
title: Unity 预览看联接的 Ui,不看游戏 DLL
|
||||
type: fact
|
||||
permalink: main/projects/d2b9f121-7638-43b7-97a8-17bdddcd238a/unity-预览看联接的-ui-不看游戏-dll
|
||||
stable_id: 2edfc9b9-639d-486c-b6e7-e06c953607fc
|
||||
scope: project
|
||||
memory_type: fact
|
||||
project_id: d2b9f121-7638-43b7-97a8-17bdddcd238a
|
||||
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||
status: active
|
||||
revision: 1
|
||||
request_id: sotf-preview-sample-clock-20261020
|
||||
created_at: '2026-10-19T22:01:40.191671+00:00'
|
||||
updated_at: '2026-10-19T22:01:40.191671+00:00'
|
||||
tags:
|
||||
- preview
|
||||
- unity
|
||||
- sample
|
||||
---
|
||||
|
||||
SOTFAssist 的 Unity 预览工程在 Preview,菜单是「游戏辅助 / 界面预览」。Preview\Assets\Ui 是指向仓库 Ui 的目录联接,编辑器编译这套源码,不读游戏 Mods\SOTFAssist.dll。Lang.cs 和 UiTips.cs 必须在 Ui 下,否则预览编译失败并继续用旧程序集。Preview\Assets\PreviewCompile\LocalizationStub.cs 只给编辑器提供空的 Unity Localization 类型。AssistUi.Sample() 只被预览窗口调用。当前示例把 ShowDifficulty 设为 true,DifficultyScroll.y 为 160,打开预览就停在定制游戏页,能看到「时间显示」分组。不要为预览示例覆盖游戏 DLL。
|
||||
Reference in New Issue
Block a user