Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

SceneManager's events, and events in general

Discussion in 'Documentation' started by Baste, Sep 7, 2016.

  1. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    3,169
    SceneManager defines three static events:

    Code (csharp):
    1. public static event UnityAction<Scene, Scene> activeSceneChanged;
    2. public static event UnityAction<Scene, LoadSceneMode> sceneLoaded;
    3. public static event UnityAction<Scene> sceneUnloaded;
    None of the events have documented what their arguments are. It's not too hard to guess what the arguments are, but at least some people get confused.

    All publicly available events should document not only when they're raised, but also what data they send. This is just one example, I don't think I've ever seen an event document it's return data. I might be wrong.
     
    kartikips, shottogan, dyupa and 4 others like this.
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,288
    I'll add this to the list of needed improvements to the docs. Hope it doesn't take too long for this to added, and similar docs found and improved.
     
    Zullar likes this.
  3. DistulX2

    DistulX2

    Joined:
    Dec 19, 2016
    Posts:
    3
    Bump. Documents still do not reflect this information.
     
  4. spacefrog

    spacefrog

    Joined:
    Jun 14, 2009
    Posts:
    505
    Bumpdee bump

    Documents still do not reflect this information.
     
  5. Samacvuk

    Samacvuk

    Joined:
    Jan 8, 2017
    Posts:
    25
    Bumping
    Doc still does not contain this so much needed info on usage.
     
  6. thehippomaster21

    thehippomaster21

    Joined:
    Sep 9, 2017
    Posts:
    1
    Bump! Document still doesn't reflect this.
     
  7. JetStreamSham

    JetStreamSham

    Joined:
    Jul 4, 2015
    Posts:
    16
    Bump.
    Docs still don't have this info.
     
  8. paulsm_unity

    paulsm_unity

    Unity Technologies

    Joined:
    Sep 9, 2017
    Posts:
    3
    It is on our Radar guys.
     
  9. callen

    callen

    Joined:
    Dec 31, 2013
    Posts:
    22
    Good to know, as I was just trying to find this exact info!
     
  10. kartikips

    kartikips

    Joined:
    Jan 10, 2017
    Posts:
    21
    Guys, when you are updating docs?
     
  11. jc-drile77

    jc-drile77

    Joined:
    Jul 1, 2014
    Posts:
    201