在RazTools/Studio基础上增加Plugins扩展,可以在Plugin菜单中使用这些指令。
-
-
ExtractFromFolder:
UnityCNLive2DExtractor的Gui版本,用于可用Container完成分组的常规L2D资源。-
Options中选择可用的正确解包方式。ExtractFromFolder菜单选中解包资源所在文件夹。- 将在文件夹所在目录生成
Live2DOutput目录。
注意
MonoBehaviour资源可能的dll程序集载入需求,一些情况下需要使用Il2CppDumper或其他工具dump出用于解包的DummyDll。
-
-
每组L2D资源(除
Motion以外)对应唯一的GameObject,通过涵盖这些资源信息的GameObject可以反向映射获取一组L2D资源(Studio默认状态不会显示GameObject,这里通过Animator间接获取对应的GameObject)。-
ExportWithPathIDFolder:导出时额外增加一级以PathID命名的目录(排除预期之外的覆盖行为)。 -
SaveByAllAnimators:从所有Animator中导出可用的L2D资源组。SaveBySelectedAnimators:从选中的所有Animator中导出可用的L2D资源组。
注意
MonoBehaviour资源可能的dll程序集载入需求,一些情况下需要使用Il2CppDumper或其他工具dump出用于解包的DummyDll。 -
由于
Gameobject与Motions资源并无直接关联,使用此方案需要配合SaveMotionsBySelected。 -
SaveMotionsBySelected:从选中的所有Animator以及AnimationClip中导出可能的.motion3.json文件。ForceSaveAsMoc3:从选中的所有MonoBehaviour中导出可用的.moc3文件。ForceSaveAsPhysics:从选中的所有MonoBehaviour中导出可用的.physics3.json文件。
-
-
-
每组Spine资源对应唯一的
MonoBehaviour,通过涵盖这些Spine资源信息的MonoBehaviour可以反向映射获取一组Spine资源。-
ExportExviewerConfig:生成用于Live2DViewerEX的配置文件。ExportWithSkelFolder:导出时额外增加一级以Spine骨架文件名命名的目录。ExportWithPathIDFolder:导出时额外增加一级以PathID命名的目录(排除预期之外的覆盖行为)。
-
SaveByAllMonoBehaviourScript:从所有的MonoBehaviour中导出可用的Spine资源组。SaveBySelectedMonoBehaviourScript:从选中的MonoBehaviour中导出可用的Spine资源组。
注意
MonoBehaviour资源可能的dll程序集载入需求,一些情况下需要使用Il2CppDumper或其他工具dump出用于解包的DummyDll。
-
Check out the original AssetStudio project for more information.
Note: Requires Internet connection to fetch asset_index jsons.
How to use:
Check the tutorial here (Thanks to Modder4869 for the tutorial)
CLI Version:
Description:
Usage:
AssetStudioCLI <input_path> <output_path> [options]
Arguments:
<input_path> Input file/folder.
<output_path> Output folder.
Options:
--silent Hide log messages.
--type <Texture2D|Sprite|etc..> Specify unity class type(s)
--filter <filter> Specify regex filter(s).
--game <BH3|CB1|CB2|CB3|GI|SR|TOT|ZZZ> (REQUIRED) Specify Game.
--map_op <AssetMap|Both|CABMap|None> Specify which map to build. [default: None]
--map_type <JSON|XML> AssetMap output type. [default: XML]
--map_name <map_name> Specify AssetMap file name.
--group_assets_type <ByContainer|BySource|ByType|None> Specify how exported assets should be grouped. [default: 0]
--no_asset_bundle Exclude AssetBundle from AssetMap/Export.
--no_index_object Exclude IndexObject/MiHoYoBinData from AssetMap/Export.
--xor_key <xor_key> XOR key to decrypt MiHoYoBinData.
--ai_file <ai_file> Specify asset_index json file path (to recover GI containers).
--version Show version information
-?, -h, --help Show help and usage information
NOTES:
- in case of any "MeshRenderer/SkinnedMeshRenderer" errors, make sure to enable "Disable Renderer" option in "Export Options" before loading assets.
- in case of need to export models/animators without fetching all animations, make sure to enable "Ignore Controller Anim" option in "Options -> Export Options" before loading assets.
Special Thank to:
- Perfare: Original author.
- Khang06: Project for extraction.
- Radioegor146: Asset-indexes for recovered/updated asset_index's.
- Ds5678: AssetRipper[discord] for information about Asset Formats & Parsing.
- mafaca: uTinyRipper for
YAMLandAnimationClipConverter.