如何在运行时创建资产包? [英] How to create assetbundle at run time?

查看:34
本文介绍了如何在运行时创建资产包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有将 3D 模型转换为资产包的工具?或者是否可以在运行时转换它们?

Is there a tool which converts 3D models to asset bundles ? or is it possible to convert them at run time ?

我可以使用 从外部服务器在 Unity3D 中加载 3d 对象 .但我的应用程序允许最终用户上传他们自己的 3D 模型并在运行时通过下载在应用程序中查看它们.

I am able to convert them using this Loading 3d object from external server in Unity3D . But My application allows end users to upload their own 3D models and view them in application by downloading at run time .

ps:我对 unity 很陌生.

p.s : I am very new to unity .

推荐答案

是否有将 3D 模型转换为资产包的工具?或者是可以在运行时转换它们吗?

Is there a tool which converts 3D models to asset bundles ? or is it possible to convert them at run time ?

简短的回答是否定的.您不能在运行时使用,因为用于创建 Assetbundle 的每个 Unity API 仅在 Editor for Editor 插件中可用.

The short answer is no. You can't during the run-time because every Unity API to create Assetbundle is only available on the Editor for Editor plugins only.

但我的应用程序允许最终用户上传他们自己的 3D 模型和通过在运行时下载在应用程序中查看它们.

But My application allows end users to upload their own 3D models and view them in application by downloading at run time .

如果您想要做的是允许人们将 fbx 模型导入并查看到 Unity,那么您不需要 Assetbundle 来执行此操作.

If what you are trying to do is allow people to import and view fbx model into Unity then you don't need Assetbundle to do this.

您有两个提示:

1.使用 TriLib(非免费)插件,如果您也想支持 40 多种其他 3D 文件格式.

1.Use the TriLib (Not free) plugin if you want to support 40+ other 3D file formats too.

2.如果您负担不起付费工作插​​件,请自行制作.这需要您使用 C++ 中的 Autodesk FBX SDK 构建插件,并使用 C# 与之通信.由于您是初学者,我建议您选择#1.

2.If you can't afford a paid working plugin, make your own. This requires you build a plugin with Autodesk FBX SDK in C++ and use C# to communicate with this. Since you are a beginner, I will suggest you go with #1.

这篇关于如何在运行时创建资产包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆