Ejemplo n.º 1
0
        static AvaliShaderDatabase()
        {
            string dir = RimValiUtility.dir;

            Log.Message(dir);
            string      path   = dir + "/RimValiAssetBundles/shader";
            AssetBundle bundle = RimValiUtility.shaderLoader(path);

            Tricolor = (Shader)bundle.LoadAsset("assets/resources/materials/avalishader.shader");
            if (!(Tricolor == null))
            {
                Log.Message(Tricolor.name);
                Log.Message("Load worked!");
            }
        }