示例#1
0
		//METHODS:
#if UNITY_EDITOR
		public override void Draw(E.SceneView sceneView)
		{
			base.Draw(sceneView);
			EditorUtil.BeginColorPocket(m_color);
			G.DrawTexture(GetPositionedRect(sceneView), image);
			EditorUtil.EndColorPocket();
		}
示例#2
0
		//METHODS:
#if UNITY_EDITOR
		public override void Draw(E.SceneView sceneView)
		{
			base.Draw(sceneView);
			EditorUtil.BeginColorPocket(m_color);
			G.Label(GetPositionedRect(sceneView), m_text, guiStyle);
			EditorUtil.EndColorPocket();
		}
示例#3
0
		//METHODS:
#if UNITY_EDITOR
		public override void Draw(E.SceneView sceneView)
		{
			base.Draw(sceneView);
			EditorUtil.BeginColorPocket(m_color);
			if (G.Button(GetPositionedRect(sceneView), m_text, guiStyle))
				if (onClick != null) {
					onClick();
					onClick = null;
					EditorUtil.UnsubGUIDelegate();
				}

			EditorUtil.EndColorPocket();
		}