Epigene.UI.UIVideo.UIVideo C# (CSharp) Méthode

UIVideo() public méthode

ctor for create from dictionary
public UIVideo ( GameObject gameObject, object>.Dictionary dict ) : UnityEngine
gameObject UnityEngine.GameObject
dict object>.Dictionary
Résultat UnityEngine
		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()

Same methods

UIVideo::UIVideo ( GameObject gameObject ) : UnityEngine