//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(); }
//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(); }
//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(); }