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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    104
    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:
    16
    Hi. Tutorial Framework 2.1 (currently work in progress) will include a support to configure this for Unity 2021.1 and newer.