UnityEngine.WWW.GetAudioClipCompressed C# (CSharp) Method

GetAudioClipCompressed() public method

Returns an AudioClip generated from the downloaded data that is compressed in memory (Read Only).

public GetAudioClipCompressed ( ) : AudioClip
return AudioClip
        public AudioClip GetAudioClipCompressed()
        {
            return this.GetAudioClipCompressed(true);
        }

Same methods

WWW::GetAudioClipCompressed ( bool threeD ) : AudioClip
WWW::GetAudioClipCompressed ( bool threeD, AudioType audioType ) : AudioClip

Usage Example

コード例 #1
0
        static int _m_GetAudioClipCompressed(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.WWW __cl_gen_to_be_invoked = (UnityEngine.WWW)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1)
                {
                    UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool threeD = LuaAPI.lua_toboolean(L, 2);

                    UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(threeD);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.AudioType>(L, 3))
                {
                    bool threeD = LuaAPI.lua_toboolean(L, 2);
                    UnityEngine.AudioType audioType; translator.Get(L, 3, out audioType);

                    UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(threeD, audioType);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WWW.GetAudioClipCompressed!"));
        }
All Usage Examples Of UnityEngine.WWW::GetAudioClipCompressed