If I drop my 3ds file and the six associated .jpg files into my Assets folder, the materials are all assigned correctly and I can simply drag the model into the scene and it’s good to go.
What I’m trying to do is create a utility program to allow the user to select files at runtime to be imported.
Then I’m hoping to use an asset bundler from the Store to easily bundle and upload the bundle to the cloud, so that the bundle can be used by another Unity program.
I found a post that I created this script from:
using UnityEngine;
using System.Collections;
public class Import : MonoBehaviour
{
public string url = "file:///c:/ETC Projects/CWB/T-Joint_AR/Weld_b~1.jpg";
IEnumerator Start()
{
WWW www = new WWW(url);
yield return www;
renderer.material.mainTexture = www.texture;
}
}
This script will import the .jpg file and import it as a material to whatever the script is attached to.
Maybe I need to import my 3ds file as a…model(?) to an empty game object?
Really not sure how to even search for this solution. I’ve been at it all day without much luck. Any leads would be appreciated.