MassBattleAssemblyTemplate.h
Source/MassBattleEditor/Public/UnitAssembly/MassBattleAssemblyTemplate.h
概述Overview
Assembly 模板 Actor——一套“多部件拼合单位”的持久载体。它不是运行时角色,而是一个以蓝图资产保存的配置 Actor:Parts / Combinations 两个结构体数组是唯一数据源,物理镜像则是每个部件版本一个真实网格组件。删掉模板资产,这套配置随之消失;改了数组,组件在 OnConstruction 或手动调用 RebuildPartComponents 时按名字对账。
The assembly template actor — the persistent carrier of a multi-part composite unit. It is not a runtime character but a configuration actor saved as a Blueprint asset: the Parts and Combinations struct arrays are the single source of truth, and the physical mirror is one real mesh component per part version. Delete the asset and the configuration is gone; edit the arrays and the components reconcile by name in OnConstruction or when RebuildPartComponents is called.
部件的两种类型决定了整棵树:Body 是共享同一骨架、由动画驱动的身体件;Attachment 是刚体挂件,按“父部件 + socket”定位,可用骨骼网格也可用静态网格。父子关系只有两层——Body 可以拥有子件,子件不能再拥有子件;版本的变换不会向子件继承。所有编辑与预览都在 Assembly 工具窗口 里完成,工作数据保存在 UMassBattleAssemblyState 中。
The two part types define the whole tree: Body parts share one skeleton and are driven by animation; Attachment parts are rigid, positioned by “parent part + socket”, and may be either skeletal or static meshes. Parenting is two levels only — a Body part may own children, a child may not own children; version transforms are never inherited by children. All editing and preview happens in the Assembly tool window, whose working data lives in UMassBattleAssemblyState.
该 Actor 本身不参与模拟:PrimaryActorTick 关闭、Actor 与全部网格组件都禁用碰撞,因此它只是一个纯编辑侧的组合载体,放在关卡里不会挡射线、也不消耗运行时开销。
The actor never simulates: PrimaryActorTick is off and collision is disabled on the actor and on every generated mesh component. It is a pure editor-side composition container, so a placed instance neither blocks traces nor costs runtime work.
继承Inheritance
EAssemblyPartType enum class
部件类型。BlueprintType,在编辑器里以 Body / Attachment 显示。类型决定三件事:能否拥有子件(只有 Body 可以)、版本是否被骨架动画驱动、以及 PartTransform 的参考空间(Actor 根还是 socket)。
The part type. Marked BlueprintType and shown as Body / Attachment in the editor. The type decides three things: whether the part may own children (only Body may), whether its versions are driven by skeletal animation, and the reference space of PartTransform (actor root or socket).
| 值Value | 说明Description |
|---|---|
Body | 共享骨架、随动画变形的身体件。可以拥有子件(挂件),是两层树的上层。A shared-skeleton body part that deforms with animation. It may own children (attachments) and forms the upper level of the two-level tree. |
Attachment | 刚体挂件:不参与动画,按父部件的选中版本 mesh 上的 socket 挂接;网格可为骨骼或静态。不能拥有子件。A rigid attachment: not animated, mounted on a socket of the parent part's selected-version mesh; the mesh may be skeletal or static. It can never own children. |
结构体Structs
一个持久化的部件版本:显示名 + 源网格 + 该版本相对部件占位符的变换。骨骼网格与静态网格恰设其一——Body 版本必须是骨骼网格;挂件版本两者皆可(静态网格即完全刚性、无骨架绑定)。
One persisted part version: a display name, a source mesh, and the transform of this version relative to the part's placeholder. Exactly one of skeletal / static mesh is set — body versions must be skeletal; attachment versions may use either (a static mesh is fully rigid, with no skeleton binding).
成员变量Members
| 名称Name | 类型Type | 默认值 | 说明Description |
|---|---|---|---|
VersionName | FString | 空empty | 版本显示名,仅用于面板与日志显示,不参与名字解析。Version display name, used for the panel and log output only; it is not part of any name resolution. |
SkeletalMesh | TObjectPtr<USkeletalMesh> | nullptr | 骨骼网格源。设了它就生成骨骼网格组件(Body 版本的唯一合法形态)。Skeletal source mesh. Setting it produces a skeletal mesh component (the only legal form for a body version). |
StaticMesh | TObjectPtr<UStaticMesh> | nullptr | 静态网格源,用于无动画的挂件版本;设了它就生成静态网格组件。Static source mesh for non-animated attachment versions; setting it produces a static mesh component. |
VersionTransform | FTransform | FTransform::Identity | 本版本相对部件占位符的变换。占位符承载所有版本共享的部分,这里承载单版本特有的差异(例如不同服装剪裁的偏移差)。改动只影响本版本,不影响子件。This version's transform relative to the part placeholder. The placeholder carries what all versions share; this carries what is unique to one version (e.g. an offset difference between outfit cuts). Editing it affects only this version and is not inherited by children. |
一个持久化的部件:名字、版本列表、当前选中版本、类型,以及(仅挂件的)父部件名与 socket。部件在数组中的顺序决定最终产物里各部件内容的先后,版本数组顺序决定该部件各版本的先后——所以调整顺序是实质性的编辑,而不只是改变显示次序。
One persisted part: name, version list, currently selected version, type, plus (attachments only) the parent part name and socket. A part's position in the array determines where its content sits in the produced result, and version order determines the order of that part's versions — so reordering is a substantive edit, not merely a display change.
成员变量Members
| 名称Name | 类型Type | 默认值 | 说明Description |
|---|---|---|---|
PartName | FString | 空empty | 部件名。父子关系与 socket 挂接都按这个名字引用,所以同一模板内必须唯一(面板会拒绝重名与空名)。组件名由它净化而来。Part name. Parenting and socket mounting both reference parts by this name, so it must be unique within a template (the panel refuses empty and duplicate names). Component names are derived from it. |
SelectedVersion | int32 | INDEX_NONE | 当前显示的版本下标。INDEX_NONE = 该部件整体隐藏(合法状态)。这就是“当前应用的组合”在单个部件上的落地形式。Index of the version shown right now. INDEX_NONE hides the whole part (a legal state). This is how “the applied combination” lands on an individual part. |
Versions | TArray<FAssemblyVersionDef> | 空empty | 版本列表,顺序即网格元素顺序。空列表表示该部件还没有任何几何。Version list; its order is mesh-element order. An empty list means the part has no geometry yet. |
PartType | EAssemblyPartType | Body | Body 或 Attachment。改成 Attachment 后才会用到下面两个字段。Body or Attachment. The two fields below are only used once the type is Attachment. |
ParentPartName | FString | 空empty | 仅挂件:父部件的 PartName。父部件必须存在且为 Body(只有 Body 能拥有子件);解析不到时挂件回落到 Actor 根节点,校验会报错。Attachments only: the parent's PartName. The parent must exist and be a Body part (only Body parts own children); an unresolvable parent makes the attachment fall back to the actor root, and validation reports it. |
AttachSocket | FName | NAME_None | 仅挂件:父部件选中版本网格上的 socket 名;父部件没有选中版本时按它的首个版本解析。NAME_None 表示未选,挂件会挂到父节点原点。Attachments only: a socket name on the parent's selected-version mesh (when the parent has nothing selected, its first version is used). NAME_None means “not picked” and the attachment mounts at the parent's origin. |
BakeGroupName | FString | 空empty | 烘焙组名,由面板写入并随模板一起保存,空 = 未打组。同名的部件在烘焙时合成一个 emitter:组内每个在组合里出现过的版本元组各合并成一份网格、占一个 renderer;合并只合几何,材质槽不合并(串接,每段保留自己的材质)。它不产生组件、不改变挂接,也不影响预览。Bake-group name written by the panel and saved with the template; empty means ungrouped. Same-name parts bake into one emitter: every version-tuple that appears in a combination is merged into one mesh occupying one renderer. Only geometry is merged — material slots are not (they are concatenated, each section keeping its own material). It creates no components, changes no mounts, and does not affect the preview. |
PartTransform | FTransform | FTransform::Identity | 部件占位符的变换:Body 相对 Actor 根,挂件相对所挂 socket。挪占位符即同时挪动该部件的全部版本。这就是被持久化的变换——组件只是渲染它。缩放请保持 1:所见即所得,需要整体大小时请缩放 Actor 本身。The part placeholder transform: actor-relative for bodies, socket-relative for attachments. Moving the placeholder moves every version of that part at once. This IS the persisted transform — components only render it. Keep scale at 1: what you see is what you get — scale the actor itself when you need an overall size. |
一个具名组合——对“每个部件显示哪个版本(至多一个,INDEX_NONE = 隐藏)”的具名快照,与 Parts 平行。两种形态共用同一个结构体:RandomMembership 为空是固定卡(逐部件一个确定选择);非空是随机卡(一张卡代表逐部件允许集的整个笛卡尔积,例如 5 个部件 × 10 个版本 = 10 万种组合只占一张卡)。
One named combination — a named snapshot of “which version each part shows” (at most one per part, INDEX_NONE = hidden), parallel to Parts. Both flavours share this struct: an empty RandomMembership is a fixed card (one definite pick per part); non-empty is a random card standing for the whole cartesian product of the per-part allowed sets (e.g. 5 parts × 10 versions = 100k combinations as one card).
成员变量Members
| 名称Name | 类型Type | 默认值 | 说明Description |
|---|---|---|---|
CombinationName | FString | 空empty | 组合名。新建时自动取不与现有重名的 Combination N;可双击卡片名改写。Combination name. New cards get a non-colliding Combination N; double-clicking the card's name edits it. |
VersionSelections | TArray<int32> | 空empty | 逐部件选中的版本下标,与 Parts 平行;INDEX_NONE = 该部件隐藏。数组长度会自动补齐到当前部件数(新增槽位 = 隐藏),所以增删部件不会让旧组合错行。随机卡忽略本字段(它只记录面板里最近一次掷出的样本)。Per-part selected version index, parallel to Parts; INDEX_NONE hides that part. The array is auto-padded to the current part count (new slots = hidden), so adding or removing parts never shifts old combinations. Random cards ignore this field (it only holds the last sample rolled in the panel). |
RandomMembership | TArray<FString> | 空empty | 随机卡的逐部件参与文本,与 Parts 平行。数组非空即为随机卡;每项语法见下表。卡在烘焙时只占一行配置,逐 agent 的版本在出生时掷定。Per-part membership texts of a random card, parallel to Parts. A non-empty array makes it a random card; the per-entry syntax is in the table below. At bake time the card occupies a single configuration row, and each agent's versions are rolled at spawn. |
随机卡参与文本语法Random-Card Membership Syntax
| 写法Text | 含义Meaning |
|---|---|
0,2,5-7 | 单值与区间混写:本部件可在版本 0、2、5、6、7 中取一个。单值越界被丢弃,区间两端被钳到有效范围内;重复项自动合并。Singles and ranges mixed: this part may take version 0, 2, 5, 6 or 7. An out-of-range single is dropped, range ends are clamped into the valid span, and duplicates are merged. |
all 或or空文本empty text | 本部件的全部版本都参与。空文本是“未填写”的默认含义,因此尾部省略若干项等于全部参与;all 也可以夹在列表里作为其中一项。Every version of this part participates. Empty text is the “not filled in” default, so an omitted tail means everything participates; all may also appear as one item inside a list. |
none | 本部件在该卡的所有组合里恒为隐藏。This part is always hidden in every combination of that card. |
0,2;none;all | 多个部件时以分号分隔,顺序与 Parts 一致。大小写不敏感;全角逗号、顿号、空格与制表符都会被容忍。Separate parts with semicolons, in Parts order. Matching is case-insensitive, and full-width commas, enumeration commas, spaces and tabs are tolerated. |
| 无法解析cannot parse | 含非数字内容或非法区间(如 a-b)时解析失败,面板拒绝提交并在日志里指名是哪个部件、哪段文本——草稿保持打开待修正。Non-numeric content or a malformed range (e.g. a-b) fails to parse; the panel refuses to commit and the log names the part and the offending text — the draft stays open for a fix. |
一张随机卡代表的是整个积族,不是一个选择:面板不会把卡“展开”成一堆固定组合,烘焙也不会为每个组合各建一行。编辑器里点卡上的掷骰按钮只掷出一个样本供外观预览,再点再掷。
A random card stands for the whole product family, not one pick: the panel never expands it into a list of fixed combinations, and the bake does not create a row per combination. The shuffle button in the editor rolls one sample for a look; clicking again re-rolls.
公开方法Public Methods
把本实例的网格组件与 Parts 数组按名字对账,是本类的核心动作。逐版本一个组件(SK_<部件>_V<下标>):不再需要的托管组件被销毁,保留的原地更新 mesh 与可见性,缺失的作为实例组件补齐。每个部件另有一个 PLACE_<词干> 场景占位符承载 PartTransform,该部件的全部版本组件都挂在它下面;挂件的占位符再按 socket 锚到父部件选中版本的组件上(父级解析不到时回落到 Actor 根)。隐藏或无 mesh 的版本同样会得到组件——每个版本都有稳定槽位,可见性就是组合状态。对已存在的组件不会覆盖变换,因此在关卡里拖动的预览编辑能存活;新建组件才取持久化的版本变换。可重复调用:OnConstruction 与面板的每次编辑都靠它。
Reconciles this instance's mesh components against the Parts array by name — the class's core action. One component per version (SK_<Part>_V<Index>): managed components that are no longer wanted are destroyed, kept ones get their mesh and visibility updated in place, and missing ones are created as instance components. Each part also owns a PLACE_<stem> scene placeholder carrying PartTransform, and all of that part's version components hang under it; an attachment's placeholder is additionally anchored to the parent's selected-version component at the socket (falling back to the actor root when the parent cannot be resolved). Hidden or mesh-less versions still get a component — every version keeps a stable slot, and visibility IS the combination state. Existing components never have their transforms stomped, so level-side preview edits survive; only newly created components take the persisted version transform. Safe to call repeatedly: OnConstruction and every panel edit rely on it.
Input
无参数——它读取本实例的 Parts 数组。
No parameters — it reads this instance's Parts array.
Output
无返回值。副作用:新增/销毁实例组件、重挂父级、更新组件的 mesh 与可见性;不改写 Parts 数据,也不触碰 SK_*_V<数字> / PLACE_* 命名空间之外的任何组件或蓝图节点。
No return value. Side effects: adds and destroys instance components, re-parents nodes, updates meshes and visibility. It does not write Parts and never touches any component or Blueprint node outside the SK_*_V<digits> / PLACE_* namespace.
把任意部件名净化成可用作组件名的标识符词干:合法标识符字符直通,其余字符(含连续多个)折叠成单个下划线,结尾的下划线被去掉,首字符不允许是下划线;净化后为空则回退为 Part。同一套规则在运行时对账器与面板的蓝图组件同步两侧共用,因此两边算出的名字永远一致。
Turns an arbitrary part name into a component-name-safe identifier stem: identifier characters pass through, everything else (including runs) collapses into a single underscore, trailing underscores are trimmed, and a leading underscore is not allowed; an empty result falls back to Part. The same rule is shared by the runtime reconciler and the panel's Blueprint component sync, so both sides always compute identical names.
Input
| 参数Param | 类型Type | 说明Description |
|---|---|---|
InPartName | FString | 原始部件名,可含空格、标点、非 ASCII 字符。Raw part name; may contain spaces, punctuation and non-ASCII characters. |
Output
返回净化后的词干;输入无法产出任何合法字符时返回 "Part"。无副作用。
Returns the sanitized stem, or "Part" when nothing usable remains. No side effects.
给一份 Parts 配置算出完整的期望组件名列表:扁平、部件优先顺序(部件 0 的 v0、v1,部件 1 的 v0……)。词干重复时确定性去重(Head、Head_2、Head_3……),因此同一份配置每次调用都得到同一串名字。传入 OutPlaceNames 时同时输出每个部件的 PLACE_<词干> 名字,与 Parts 一一对应。运行时对账器和面板的蓝图组件同步都走这份列表,两边顺序因此严格一致。
Computes the full desired component-name list for a Parts configuration: flat and part-major (part 0's v0, v1, then part 1's v0, and so on). Duplicate stems are de-duplicated deterministically (Head, Head_2, Head_3, …), so the same configuration always yields the same list. When OutPlaceNames is supplied, one PLACE_<stem> name per part is written alongside, parallel to Parts. Both the runtime reconciler and the panel's Blueprint component sync walk this list, which keeps the two orders strictly identical.
Input
| 参数Param | 类型Type | 说明Description |
|---|---|---|
InParts | const TArray<FAssemblyPartDef>& | 部件配置;只读,不会修改。Part configuration; read-only. |
OutPlaceNames | TArray<FName>* | 可选输出,可传 nullptr。非空时按 InParts 顺序追加 PLACE_<词干>。Optional output; may be nullptr. When non-null, one PLACE_<stem> per part is appended in InParts order. |
Output
返回扁平名字数组,长度 = 全部版本数之和;同时写可选输出数组。无副作用。
Returns the flat name array whose length equals the total version count, and writes the optional placeholder list. No side effects.
判断一个名字是否属于 assembly 托管的命名空间——对账器与蓝图组件同步只允许动这些名字,其余一切都是用户自己的资产。两条命中规则:以 PLACE_ 开头且后面还有字符的场景占位符;以 SK_ 开头、含有 _V 且其后全是数字(至少要有一个词干字符在中间)的版本组件。名字以 SK_ 开头但不符合该形状(例如 SK_Head、SK__V0)不算托管,因而永远不会被重建逻辑删掉。
Reports whether a name belongs to the assembly-managed namespace — the only names the reconciler and the Blueprint component sync may touch; everything else is user property. Two matching rules: a scene placeholder starting with PLACE_ and followed by characters; a version component starting with SK_, containing _V with at least one stem character before it and only digits after it. A name that starts with SK_ but does not fit that shape (e.g. SK_Head, SK__V0) is not managed and is therefore never removed by a rebuild.
Input
| 参数Param | 类型Type | 说明Description |
|---|---|---|
InName | const FName& | 组件名或蓝图 SCS 节点名。A component name or Blueprint SCS node name. |
Output
托管命名空间内返回 true,否则 false。无副作用。
Returns true inside the managed namespace, otherwise false. No side effects.
成员变量Members
| 名称Name | 类型Type | 默认值 | 说明Description |
|---|---|---|---|
Parts | TArray<FAssemblyPartDef> | 空empty | 全部部件(Body 与 Attachment 混排)及其版本。数组顺序 = 组件排列顺序,也决定最终产物里各部件的先后;面板与蓝图细节都能编辑它。All parts (bodies and attachments interleaved) with their versions. Array order is the component ordering and also decides the order of parts in the produced result; it is editable both in the panel and in the Blueprint details. |
Combinations | TArray<FAssemblyCombinationDef> | 空empty | 具名的逐部件显隐组合。应用一个即一键切换全部部件;随机卡代表积族。整组随模板一起保存,也随面板 Save 一起写回。Named per-part visibility combinations. Applying one switches every part at once; a random card stands for a product family. The whole set is saved with the template and written back on the panel's Save. |
Skeleton | TObjectPtr<USkeleton> | nullptr | 本单位的权威骨架覆写。由 Unit Assembly 面板自动填写(载入时取自资产,新建时依首个 Body 件的首个骨骼版本识别),也可手填;留空 = 回退自动识别。有值时校验与骨架一致性告警都以它为准。The unit's authoritative skeleton override. Auto-filled by the Unit Assembly panel (read from the asset on load; detected from the first Body part's first skeletal version on New) and freely hand-editable; empty falls back to auto-detection. When set, validation and the skeleton-mismatch warning compare against it. |
组件镜像规则Component Mirror Rules
模板把配置镜像成真实组件,这样它们在蓝图组件树、类默认值和每个实例上都真实存在、可直接调参。规则固定且可预测:
The template mirrors its configuration into real components, so they exist on the Blueprint's component tree, in class defaults and on every spawned instance, and can be tuned directly. The rules are fixed and predictable:
| 项目Item | 规则Rule |
|---|---|
| 命名Naming | SK_<净化词干>_V<版本下标>;每部件另有一个 PLACE_<净化词干> 场景占位符。同一模板内词干重复时按数组顺序加 _2、_3 后缀。SK_<sanitized stem>_V<version index>, plus one PLACE_<sanitized stem> scene placeholder per part. Duplicate stems inside one template get _2, _3 suffixes in array order. |
| 组件类Component class | 版本设了骨骼网格 → USkeletalMeshComponent;设了静态网格 → UStaticMeshComponent。两者共用同一个 SK_*_V<数字> 命名空间,因此挂件的静态网格版本与 Body 的骨骼版本在组件树里是同一族名字。A skeletal mesh version becomes a USkeletalMeshComponent; a static mesh version becomes a UStaticMeshComponent. Both live in the same SK_*_V<digits> namespace, so an attachment's static version and a body's skeletal version are one name family in the component tree. |
| 可见性Visibility | 可见性就是组合状态:只有 SelectedVersion 指向的那个版本可见,同部件其余版本隐藏;INDEX_NONE 时全部隐藏。隐藏版本仍然保留组件槽位,切换只是翻可见性。Visibility is the combination state: only the version pointed at by SelectedVersion is visible, the rest of that part are hidden; INDEX_NONE hides them all. Hidden versions still keep their component slot, so switching only flips visibility. |
| 挂接Attach | Body 的占位符挂在 Actor 根下;挂件的占位符挂在父部件选中版本组件的 socket 上(父件无选中则用首个版本),版本组件始终留在自己占位符下——所以“换父件选中版本”会带着整个挂件一起走,而挂件内部各版本的相对位置不变。A body's placeholder hangs under the actor root; an attachment's placeholder hangs on the socket of the parent's selected-version component (its first version when nothing is selected). Version components always stay under their own placeholder — so changing the parent's selected version carries the whole attachment along while the relative placement of its versions stays put. |
| 碰撞与 TickCollision & tick | Actor 不 Tick、Actor 级碰撞关闭;生成的每个网格组件都是 NoCollision。模板因此不能被当作角色使用。The actor does not tick and actor-level collision is off; every generated mesh component uses NoCollision. The template is therefore not usable as a character. |
| 保留区Reserved namespace | 仅 SK_*_V<数字> 与 PLACE_* 由 assembly 管理;你在蓝图里自己加的组件(任何别的名字)永远不被创建、重挂或删除。反过来,手工往托管命名空间里塞组件是没意义的——下一次对账会按名字决定它的去留。Only SK_*_V<digits> and PLACE_* are assembly-managed; components you add yourself (any other name) are never created, re-parented or deleted. Conversely, hand-adding components inside the managed namespace is pointless — the next reconcile decides their fate by name. |
补充说明Notes
① OnConstruction 只做一件事——调用 RebuildPartComponents,所以蓝图编辑器预览、放置的实例和预览 Actor 三条路径的行为完全一致。② 改 Parts 之后必须再对账一次组件才会更新;在面板里编辑会自动触发,直接改类默认值则要重新编译蓝图或重跑构造。③ 父件解析不到(父名写错、父件被删)时挂件不会悬空,而是回落到 Actor 根;面板的保存期校验会把这种情况报出来。④ 缩放的约束只针对部件占位符与版本变换:保持 1,需要整体大小时请缩放 Actor 本身。
① OnConstruction does exactly one thing — call RebuildPartComponents — which keeps the Blueprint editor preview, placed instances and the preview actor on identical behaviour. ② After editing Parts the components only update on the next reconcile; the panel triggers it automatically, while editing class defaults directly requires recompiling the Blueprint or re-running construction. ③ An unresolvable parent (typo, deleted part) never leaves an attachment dangling — it falls back to the actor root, and the panel's save-time validation reports it. ④ The scale constraint applies to the part placeholder and version transforms: keep them at 1 and scale the actor itself when you need an overall size.
内部结构Internal Structs
本头文件还定义了 1 个仅供内部数据流转的结构体,它们不是作者面配置,因此不单独成节:FAssemblySpritePreviewQuad。
This header also defines 1 structs that only carry internal data; they are not authoring surface, so they get no section of their own: FAssemblySpritePreviewQuad.
EAssemblyVersionAnimSource enum
版本的动画由什么驱动(设计稿 §2)。
What drives a version's animation (design §2).
| 值Value | 说明Description |
|---|---|
ClipSet | 共享骨架的 clip 集——网格版本至今用过的全部动画来源。The shared skeleton's clip set — every animation a mesh version has ever used. |
ATATrack | 源 ATA 时间轴上的一条具名轨道,由 TrackName 指明是哪条。One named track on the source ATA's timeline, named by TrackName. |
EAssemblyVersionMaterialSource enum
版本怎么着色(设计稿 §2)。刻意与 EAssemblyVersionKind 正交:四边形**总是**图集着色,骨骼几何 用本档的 VAT 材质,而载荷必须能只声明其中一条而不牵连另一条。
How a version is shaded (design §2). Deliberately orthogonal to EAssemblyVersionKind: a quad is ALWAYS atlas-shaded while skeletal geometry uses its band's VAT material, and the payload must be able to say one of those without implying the other.
| 值Value | 说明Description |
|---|---|
VAT | 本档的 VAT 材质(骨骼或顶点驱动)——sprite 出现之前的行为。The band's VAT material (bone- or vertex-driven) — the pre-sprite behaviour. |
Atlas | 一张图集材质实例,与档无关。One atlas material instance, band-independent. |
EAssemblyVersionKind enum
一个版本的几何**是什么**(设计稿 §2,2026-11-15)。sprite 不是第二种渲染族,而是一个"方形网格 + 图集材质"的版本,合并、P 槽桥接与可见性标签因此保持原样。
What a version's geometry IS (Docs/Design/SpriteAssembly.md §2, 2026-11-15). A sprite is not a second renderer family: it is a version drawn by a square mesh plus an atlas material, so the merge, the P-slot bridge and the visibility tags stay exactly as they are.
| 值Value | 说明Description |
|---|---|
Mesh | 骨骼或静态几何——本载荷出现之前写下的每一个版本。Skeletal or static geometry — every version authored before this payload. |
Sprite | sprite 族:ATA 的四边形,由它的图集材质着色,按 Layer 叠放。The sprite family: the ATA's quad, shaded by its atlas material, stacked by Layer. |