示例#1
0
        private Dictionary <string, Shader> LoadAllShaders(string assetBundleName)
        {
            AssetBundle bundle = KlyteResourceLoader.LoadBundle(assetBundleName);

            if (bundle != null)
            {
                ReadShaders(bundle, out Dictionary <string, Shader> m_loadedShaders);
                bundle.Unload(false);
                return(m_loadedShaders);
            }
            return(null);
        }