【发布时间】:2016-05-20 12:24:36
【问题描述】:
我是 Unreal Engine UE4 的新手,我想转换我现有的代码。有人可以帮忙吗?
Material material = Resources.Load ("Meshes/Materials/" + files [index] + "material_0", typeof(Material)) as Material;
Texture2D texture = Resources.Load ("Textures/" + files [index], typeof(Texture2D)) as Texture2D;
Mesh[] meshes = Resources.LoadAll ("Meshes/" + files [index], typeof(Mesh)).Cast<Mesh> ().ToArray ();
for (int m = 0; m < meshes.Length; m++) {
Graphics.DrawMesh (meshes [m], matrix, material, 0);
}
【问题讨论】:
-
这个主题如何与 Unity3D 关联?
-
他想将他现有的 Unity3D C# 代码移植到 UE4 C++ 代码......
-
真的!我想在 Unreal 中做同样的事情。
-
给你:docs.unrealengine.com/latest/INT 也许你可以用一种看起来不像是试图从 stackoverfow 获得免费工作的方式来重新表述这个问题。
标签: c++ unreal-engine4