Search Issue Tracker
Won't Fix
Votes
8
Found in
4.3.3b1
Issue ID
583092
Regression
No
Hashtable can't be used in WWW on WP8/WSA platforms
Using Hastable as an argument for WWW constructor throws the following errors:
Assets/CheckWWWError.cs(15,55): error CS1502: The best overloaded method match for `UnityEngine.WWW.WWW(string, byte[], System.Collections.Generic.Dictionary<string,string>)' has some invalid arguments
Assets/CheckWWWError.cs(15,55): error CS1503: Argument `#3' cannot convert `System.Collections.Hashtable' expression to type `System.Collections.Generic.Dictionary<string,string>'
See: http://docs.unity3d.com/Documentation/ScriptReference/WWW-ctor.html
Why is this not going to be fixed?
Hashtable has been replaced by Dictionary<string,string> in constructor of WWW in all platforms.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Jaxily
May 22, 2015 23:54
Thanks MRCALDERON3D this helps
MRCalderon3D
Jan 07, 2014 15:20
WorkArround:
public static Dictionary<K,V> HashtableToDictionary<K,V> (Hashtable table)
{
return table
.Cast<DictionaryEntry> ()
.ToDictionary (kvp => (K)kvp.Key, kvp => (V)kvp.Value);
}
use it:
WWW web = new WWW(url, dummmy, HashtableToDictionary<string, string>(headers));