italink/unrealclientprotocol/unreal-modeling-uv

Claude Code and agent skill by italink/unrealclientprotocol

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

GeometryScript UV 操作。当用户要求生成、投影、布局、变换 UV 或进行 UV 相关处理时使用。

Install

npx vskill@latest install italink/unrealclientprotocol/unreal-modeling-uv

SKILL.md

建模 — UV

前置条件:先阅读 unreal-modeling。

库

CDO:/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshUVFunctions

TargetMesh 为 UDynamicMesh* 路径字符串。UVSetIndex(别名 UVChannel)为 int,通常 0。Debug 省略。需要 FGeometryScriptMeshSelection 的函数,用 MeshOperationLibrary 桥接(见 unreal-modeling)。

主要函数

UV 通道管理
函数关键参数说明
SetNumUVSetsTargetMesh, NumUVSets设置 UV 通道数量
ClearUVChannelTargetMesh, UVChannel清空指定 UV 通道
CopyUVSetTargetMesh, FromUVSet, ToUVSet复制 UV 通道
UV 自动生成
函数关键参数说明
AutoGenerateXAtlasMeshUVsTargetMesh, UVSetIndex, OptionsXAtlas 自动展开(推荐通用方案)
AutoGeneratePatchBuilderMeshUVsTargetMesh, UVSetIndex, OptionsPatchBuilder 自动展开(更多控制)
RecomputeMeshUVsTargetMesh, UVSetIndex, Options, Selection基于已有岛或 Polygroup 重新计算 UV
UV 投影
函数关键参数说明
SetMeshUVsFromPlanarProjectionTargetMesh, UVSetIndex, PlaneTransform, Selection平面投影。PlaneTransform 的 Scale 定义映射到 1 UV 的世界尺寸
SetMeshUVsFromBoxProjectionTargetMesh, UVSetIndex, BoxTransform, Selection, MinIslandTriCount盒体投影
SetMeshUVsFromCylinderProjectionTargetMesh, UVSetIndex, CylinderTransform, Selection, SplitAngle圆柱投影
UV 布局与打包
函数关键参数说明
RepackMeshUVsTargetMesh, UVSetIndex, RepackOptions重新打包 UV 岛
LayoutMeshUVsTargetMesh, UVSetIndex, LayoutOptions, Selection布局 UV(支持多种模式)
ApplyTexelDensityUVScalingTargetMesh, UVSetIndex, Options, Selection按纹素密度缩放 UV
UV 变换
函数关键参数说明
TranslateMeshUVsTargetMesh, UVSetIndex, Translation, Selection平移 UV
ScaleMeshUVsTargetMesh, UVSetIndex, Scale, ScaleOrigin, Selection缩放 UV
RotateMeshUVsTargetMesh, UVSetIndex, RotationAngle, RotationOrigin, Selection旋转 UV(角度制)
UV 查询
函数关键参数说明
GetMeshUVSizeInfoTargetMesh, UVSetIndex, Selection返回 3D 面积、UV 面积、3D 包围盒、UV 包围盒等
GetMeshPerVertexUVsTargetMesh, UVSetIndex获取每顶点 UV 列表
UV 传输
函数关键参数说明
TransferMeshUVsByProjectionTargetMesh, TargetUVChannel, TargetSelection, TargetTransform, SourceMesh, SourceMeshOptionalBVH, SourceUVChannel, SourceSelection, SourceTransform, Settings, ProjectionDirection通过投影从源 mesh 传输 UV
SetUVSeamsAlongSelectedEdgesTargetMesh, UVChannel, Selection, bInsertSeams沿选中边设置/移除 UV 接缝
UV 底层操作
函数关键参数说明
SetMeshTriangleUVsTargetMesh, UVSetIndex, TriangleID, UVs设置单个三角形的 UV
AddUVElementToMeshTargetMesh, UVSetIndex, NewUVPosition添加 UV 元素
SetMeshUVElementPositionTargetMesh, UVSetIndex, ElementID, NewUVPosition设置 UV 元素位置
CopyMeshUVLayerToMeshCopyFromMesh, UVSetIndex, CopyToUVMesh将 UV 通道导出为独立 mesh
CopyMeshToMeshUVLayerCopyFromUVMesh, ToUVSetIndex, CopyToMesh将 mesh 写回 UV 通道

结构体与枚举

FGeometryScriptRecomputeUVsOptions
字段类型默认值说明
MethodEGeometryScriptUVFlattenMethodSpectralConformal展平算法
IslandSourceEGeometryScriptUVIslandSourceUVIslands岛来源
ExpMapOptionsstruct—ExpMap 专用选项
SpectralConformalOptionsstruct—SpectralConformal 专用选项
GroupLayerFGeometryScriptGroupLayer默认层Polygroup 层(当 IslandSource=PolyGroups 时)
bAutoAlignIslandsWithAxesbooltrue自动对齐岛到坐标轴
EGeometryScriptUVFlattenMethod
值说明
ExpMap指数映射
Conformal保角映射
SpectralConformal谱保角映射(推荐)
EGeometryScriptUVIslandSource
值说明
PolyGroups按 Polygroup 分岛
UVIslands按已有 UV 岛分岛
FGeometryScriptXAtlasOptions
字段类型默认值
MaxIterationsint2
FGeometryScriptPatchBuilderOptions
字段类型默认值说明
InitialPatchCountint100初始 patch 数量
MinPatchSizeint2最小 patch 大小
PatchCurvatureAlignmentWeightfloat1.0曲率对齐权重
PatchMergingMetricThreshfloat1.5合并度量阈值
PatchMergingAngleThreshfloat45.0合并角度阈值
bRespectInputGroupsboolfalse尊重输入 Polygroup
bAutoPackbooltrue自动打包
PackingOptionsFGeometryScriptRepackUVsOptions—打包选项
FGeometryScriptRepackUVsOptions
字段类型默认值
TargetImageWidthint512
bOptimizeIslandRotationbooltrue
FGeometryScriptLayoutUVsOptions
字段类型默认值说明
LayoutTypeEGeometryScriptUVLayoutTypeRepack布局类型
TextureResolutionint1024纹理分辨率
Scalefloat1打包后缩放
TranslationFVector2D(0,0)打包后平移
bPreserveScaleboolfalse保留岛缩放
bPreserveRotationboolfalse保留岛旋转
bAllowFlipsboolfalse允许翻转
EGeometryScriptUVLayoutType
值说明
Transform应用 Scale/Translation
Stack每个岛独立缩放到单位正方形
Repack集体打包到单位正方形(无重叠)
Normalize归一化纹素密度

JSON 示例

XAtlas 自动展开:

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshUVFunctions","function":"AutoGenerateXAtlasMeshUVs","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","UVSetIndex":0,"Options":{"MaxIterations":2}}}

盒体投影:

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshUVFunctions","function":"SetMeshUVsFromBoxProjection","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","UVSetIndex":0,"BoxTransform":{"Rotation":{"X":0,"Y":0,"Z":0,"W":1},"Translation":{"X":0,"Y":0,"Z":0},"Scale3D":{"X":100,"Y":100,"Z":100}},"Selection":{},"MinIslandTriCount":2}}

重新计算 UV(SpectralConformal):

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshUVFunctions","function":"RecomputeMeshUVs","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","UVSetIndex":0,"Options":{"Method":"SpectralConformal","IslandSource":"UVIslands","bAutoAlignIslandsWithAxes":true},"Selection":{}}}

发现

对 CDO 路径调用 DescribeObject 可查看完整函数列表和参数签名。

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
114
Repository forks
14
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/italink/unrealclientprotocol/unreal-modeling-uv/badge)](https://verified-skill.com/skills/italink/unrealclientprotocol/unreal-modeling-uv)

Something wrong with this skill or its page? Tell us.