// 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);
	}
Exemplo n.º 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);
	}
Exemplo n.º 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);
    }
Exemplo n.º 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);
    }