Search Unity

How to get / set Unity Editor main window title?

Discussion in 'Scripting' started by eppz, Jul 8, 2018.

  1. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    I'm creating a tool that shows your current branch in Unity window title.

    But I cannot get or set the title. So far I managed to set title property, I used Internal_SetTitle (using Reflection), but the values does not show up in the actual window title.

    On the contrary, I can set position property of main window just fine using the same method.

    Did anybody manage to alter the title using UnityEditor classes?

    (probably I could work the issue around by creating native plugins for that, but I'd prefer a cross-platform / Mono solution if there is any)