Revert "Asset loading rework"

This reverts commit 7369af2d5b.
This commit is contained in:
Katboi01
2023-08-20 12:40:05 +02:00
parent 7369af2d5b
commit e00bb9951d
11 changed files with 1069 additions and 1101 deletions
-25
View File
@@ -1,25 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public class UmaContainerProp : UmaContainer
{
public void LoadProp(UmaDatabaseEntry entry, Transform SetParent = null)
{
var go = entry.Load().Get<GameObject>();
var prop = Instantiate(go, SetParent ? SetParent : this.transform);
/*
foreach (Renderer r in prop.GetComponentsInChildren<Renderer>())
{
foreach (Material m in r.sharedMaterials)
{
//Shaders can be differentiated by checking m.shader.name
m.shader = Shader.Find("Unlit/Transparent Cutout");
}
}
*/
}
}