如何从我的UE4项目界面打开FBX文件 [英] How to open an FBX file from my UE4 project's interface

查看:1988
本文介绍了如何从我的UE4项目界面打开FBX文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的UE4项目创建了一个具有导入按钮的界面。我想要它做的是访问用户桌面上的FBX文件并打开用户选择的文件。

I've created an interface for my UE4 project that has an import button. What I want it to do is to access FBX files in the user's desktop and opens the one the user selects.

我写了一个搜索FBX文件的c ++代码在桌面上并返回他们的名字(如果找到的话)。

I've written a c++ code that searches for FBX files in the desktop and returns their names, if found.

此刻我有点困惑/困难,并且不知道如何继续。我的问题是:

I'm kind of confused/stuck at this moment, and don't know exactly how to continue. My question is:


  1. 我应该用c ++或蓝图打开FBX文件吗?
    如果您能详细说明您建议的方法,我们将不胜感激。

谢谢

推荐答案


我想要它做的是访问用户桌面上的FBX文件并打开用户选择的文件。

What I want it to do is to access FBX files in the user's desktop and opens the one the user selects.

打开东西实际上并没有告诉我们你想做什么。

"Opening something" does not actually tell us what you want to do.

使用文件类型的默认应用程序打开文件?

Open the file with The default application for the file type?

将网格加载到RAM中?

Load the mesh somewhere into RAM?

带有网格的UE4中的spawn对象?

Spawn objects in UE4 with the mesh?

谁知道什么是开放意味着什么。在maya中打开文件与使用十六进制编辑器打开文件完全不同。

Who knows what opening means. Opening the file in maya will be quite different from opening it with a hex editor.

指定您的程序应该执行的操作。

Specify what your programm should do.


我应该用c ++或蓝图打开FBX文件吗?

Shall I open the FBX file using c++ or blueprints?

来自你能用的公寓除了我上面所说的这个问题,如果BP实际上能够做你想做的事情,答案将是纯粹主观的。如果你在c ++方面做得很好,我建议坚持使用它进行文件操作。

Appart from what you can add to what I said above this questions answer will be purely subjective if BP is actually capable of doing what you want. IF you are doing good in c++ I suggest to stick with it for file operations.

这里有关于资产引用的Epics文档,这应该适合那些找到这个主题并且可能适合你的人。

Here Epics documentation on asset references, this should fit for people finding this thread and probably for you.

https://docs.unrealengine.com/latest/INT/Programming/Assets/ReferencingAssets/index.html

只需使用UStaticMesh而不是示例中使用的文件类型。

Just use UStaticMesh instead of the filetype used in the examples.

这里有一个UE4 wiki示例实现你的意思:

Here a UE4 wiki example implementation of what you could mean:

https://wiki.unrealengine.com/Dynamic_Load_Object

这篇关于如何从我的UE4项目界面打开FBX文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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