MMD动画导出unity3d文件 无法使用问题
unity吧
全部回复
仅看楼主
level 1
用unity mmd转换后 动画视频演示播放 是ok的, 导出unity3d文件后 进入游戏时就提示找不到资源
the referenced script on this behaviour is missing!
脚本如下:
using UnityEngine;
using UnityEditor;
using UnityEngine.Rendering;
public class MultiPlatformExportAssetBundles
{
[MenuItem("Assets/构建unity3D资源包")]
static void ExportResource()
{
// Bring up save panel
string path = EditorUtility.SaveFilePanel("Save Resource", "", "New Resource", "unity3d");
if (path.Length != 0)
{
// include the following Graphic APIs
PlayerSettings.SetGraphicsAPIs(BuildTarget.StandaloneWindows, new GraphicsDeviceType[] { GraphicsDeviceType.Direct3D11, GraphicsDeviceType.OpenGLCore, GraphicsDeviceType.Vulkan});
// Build the resource file from the active selection.
Object[] selection = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, BuildTarget.StandaloneWindows);
Selection.objects = selection;
}
}
}
2022年09月14日 13点09分 1
level 1
大佬们帮忙看看[呵呵]
2022年09月14日 13点09分 2
level 1
不使用mmd转换 用已有预制材质打包导出, 使用渲染是ok的. 不知道是不是脚本导出时遗漏了哪些文件?
2022年09月14日 13点09分 3
level 1
萌新求助[乖]
2022年09月14日 13点09分 4
1