public UIVideo(GameObject gameObject, Dictionary<string,object> dict)
{
WebPlayerDebugManager.addOutput("Create Video!", 1);
if(!dict.ContainsKey("type")
|| !dict.ContainsKey("id"))
{
Log.Error("Invalid dictionary for UIVideo.");
}
this.gameObject = gameObject;
this.type = UIType.Video;
this.visible = true;
//force to use sprite/default so sorting order will work
gameObject.GetComponent<Renderer>().material.shader = Shader.Find("Sprites/Default");
//force to have 100% color (not 50% transparency)
gameObject.GetComponent<Renderer>().material.color = Color.white;
Parse(dict);
WebPlayerDebugManager.addOutput("Created Video!", 1);
}//ctor()