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 Hide "Tutorials" MenuItems?

Discussion in 'In-Editor Tutorials Packages' started by SamuelAsherRivello, Feb 19, 2023.

  1. SamuelAsherRivello

    SamuelAsherRivello

    Joined:
    Jan 16, 2011
    Posts:
    35
    Hello Everyone!

    I have learned, developed and released the IET within my latest Unity Package

    https://github.com/SamuelAsherRivello/rmc-mini-mvcs/

    This is the official repo for my "MVC For Unity" Udemy course.

    https://bit.ly/mvc-architecture-for-unity-on-udemy

    Enjoy!

    BACKGROUND INFO

    Here is the high level structure.


    (A) Unity Project - The End User's Custom Game
    └── Depends Via Package Manager on...
    └── (B) Unity Project - The Mini MVCS Unity Package
    └── Depends Via Package json on...
    └──"com.unity.learn.iet-framework": "3.1.3" (C)
    └── Contains as "Sample" Via Package Manager (D)
    ├── (E) Examples Folder
    └── (F) Tutorials Folder


    Here is the current user experience
    1. User creates their own project per "A". All good.
    2. User imports Mini MVCS with package manager per "B". Here the "Tutorials" menu appears because of C. Clicking either button throws an exception because the tutorial is not available yet per D. I don't want "Tutorials" to appear now.
    3. User imports Samples with package manager per D. Ideally the Tutorials Menu appears only now.

    QUESTION

    1. Does the IET framework allow for customization or remove of the "Tutorials" menu?
    2. Other suggestions to solve my issue?
     
  2. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    336
    I don’t want you to be bummed, but this package looks dead or abandoned to be honest. Reported bugs back in November last year and haven’t heard anything yet. Last time I read something from the devs was quite some time ago.
     
  3. Ali-Unity3D

    Ali-Unity3D

    Unity Technologies

    Joined:
    Mar 8, 2021
    Posts:
    22
    Hi. Unfortunately Unity Package Manager doesn't support specifying dependencies for package samples. This is something I've seen talked occasionally but there are no concrete plans for the feature yet, AFAIK.

    Removing the menu item might be possible by using internal APIs and reflection.

    I can't remember the exact APIs, but it might be possible to implement adding the Tutorial Framework package only after a certain sample is imported. For this, you need to write an asset postprocessor and detect when a certain sample asset is imported and then programmatically add the Tutorial Framework package to the project. You can also find, for example, `struct Sample` which was made public last year which might help you.
     
  4. Ali-Unity3D

    Ali-Unity3D

    Unity Technologies

    Joined:
    Mar 8, 2021
    Posts:
    22
    Great to see people using the IET packages! I don't work with IET any longer but there are still some people maintaining it so it's not completely dead but I'm not fully sure what the future entails for it.
     
  5. SamuelAsherRivello

    SamuelAsherRivello

    Joined:
    Jan 16, 2011
    Posts:
    35
    Thanks for the motivation and good answers. I'll consider some options.