Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Unmasking the play button?

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

  1. WhipJr

    WhipJr

    Joined:
    Aug 3, 2011
    Posts:
    125
    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

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    440
    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...

    upload_2021-4-30_10-57-55.png


    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:

    ToolbarPlayModePlayButton
    ToolbarPlayModePauseButton
    ToolbarPlayModeStepButton
     
  3. WhipJr

    WhipJr

    Joined:
    Aug 3, 2011
    Posts:
    125
    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

    Ali-Unity3D

    Unity Technologies

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