To import an FBX file at runtime in Unity, you'll need to load the file as an assetbundle or resource. Here's an example of how to do it:
main.cs841 chars35 lines
Alternatively, you can also load the FBX file as a resource using the Resources.Load
function. To do this, move the FBX file to a folder named "Resources" in your Assets directory, and use the following code:
main.cs460 chars22 lines
Note: Unity only supports FBX files that are exported in the ASCII format, not the binary format.
gistlibby LogSnag