// Use this for initialization
	public XFileImporter(Object xFile) {
		xfile.XFileConverter cnv = new xfile.XFileConverter(xFile);
		
		prefab = cnv.CreatePrefab();
		material = cnv.CreateMaterials();
		mesh = cnv.CreateMesh();
		cnv.ReplacePrefab(prefab, mesh, material);
	}
Beispiel #2
0
	// Use this for initialization
	public static void Import(Object xFile) {
		xfile.XFileConverter cnv = new xfile.XFileConverter(xFile);
		
		Object prefab = cnv.CreatePrefab();
		Material[] material = cnv.CreateMaterials();
		Mesh mesh = cnv.CreateMesh();
		cnv.ReplacePrefab(prefab, mesh, material);
	}
Beispiel #3
0
    // Use this for initialization
    public XFileImporter(Object xFile)
    {
        xfile.XFileConverter cnv = new xfile.XFileConverter(xFile);

        prefab   = cnv.CreatePrefab();
        material = cnv.CreateMaterials();
        mesh     = cnv.CreateMesh();
        cnv.ReplacePrefab(prefab, mesh, material);
    }
Beispiel #4
0
    // Use this for initialization
    public static void Import(Object xFile)
    {
        xfile.XFileConverter cnv = new xfile.XFileConverter(xFile);

        Object prefab = cnv.CreatePrefab();

        Material[] material = cnv.CreateMaterials();
        Mesh       mesh     = cnv.CreateMesh();

        cnv.ReplacePrefab(prefab, mesh, material);
    }