Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Unmasking the play button?

Discussion in 'In-Editor Tutorials Packages' started by WhipJr, Apr 29, 2021.

  1. WhipJr


    Aug 3, 2011
    Hello! I'm attempting to unmask the play button and for some reason it doesn't want to work.

    I've copied the Enable Masking example exactly from the LEGO Template using the named Control selector mode and "ToolbarPlayModePlayButton" as the Control Name, but it only wants to unmask the Tutorial window still.

    Is there somewhere that lists the UI component names like "ToolbarPlayModePlayButton"? I have to say, as a user, I would have never guessed that to be the name of what most people probably call the "Play Button" (which I have also tried as the control name to no avail).

    Version info:
    Unity Version 2021.1.4f1
    TAT 1.0.0-pre.4
    TF 2.0.0-pre.f
  2. RikuTheFuffs-U


    Unity Technologies

    Feb 20, 2020
    Hey Whip!

    You're right: I just tried with those masking settings on 2020.3 and they work. On 2021.1.0a7, they don't (the whole toolbar is highlighted instead). This seems to be because the whole toolbar was reworked in 2021 and converted to UIElements, which means that IET is currently incapable of interacting with its content as it has no way to detect it :(
    UIE support is in our roadmap, and this makes it even more urgent than we thought...


    My recommendation would be to stick to 2020.3 for IET content, for now.

    Unfortunately, there isn't. Your observation totally makes a point, we could either provide the list in the documentation or, even better, let you pick up it from an enum or something similar. Would that help?

    By looking at the editor's code, I can tell you that the name of the 3 buttons in 2020.3 is:

  3. WhipJr


    Aug 3, 2011
    Thank you for looking into it!

    An enum/list of sorts would be nice, in my head I was envisioning an eyedropper of sorts that lets you select the UI component you want to focus, but I fear that's a bit over-the-top lol

    Thank you again! I'm going to go make a backup and downgrade the project.
  4. Ali-Unity3D


    Unity Technologies

    Mar 8, 2021
    Hi. Tutorial Framework 2.1 (currently work in progress) will include a support to configure this for Unity 2021.1 and newer.