Unity Tutorial: Service Locator

Sdílet
Vložit
  • čas přidán 17. 07. 2024
  • In this tutorial we're going to setup a Service Locator system to make it easy to register and locate services (eg. navigation) within our projects. As part of that we'll also setup support for a Standalone Singleton and apply the Service Locator to our Navigation interface.
    🎞️ Chapters
    00:00 Introduction
    02:30 Singleton Cleanup
    09:00 Creating our Standalone Singleton
    18:45 Setting up our Service Locator
    28:30 Generating a Service Address
    32:45 Finding a Service (foundation)
    37:30 Flushing pending queries
    40:15 Finding a Service (core logic)
    48:55 Applying to the Navigation Interface
    📂 Grab the code:
    Initial Code: github.com/GameDevEducation/U...
    End of Video Code: github.com/GameDevEducation/U...
    UPM Package: github.com/GameDevEducation/U...
    Package Overview Video: • Hybrid GOAP AI in Unit...
    If you've got questions add a comment below or send them in for the next Q&A video
    🤔 Send in your questions ➠ forms.gle/ToyvqPaBFvpFLtNbA
    📁 The searchable video archive is at ➠ www.iainmcmanus.dev/gamedev-e...
    Looking for other ways to get involved?
    🟠 Support the channel on Patreon ➠ / iaintheindie
    🟡 Get the code for all the projects on GitHub ➠ github.com/orgs/GameDevEducation
    🟢 Check out my games on itch.io ➠ iaintheindie.itch.io/
    🟣 Follow me on Twitter ➠ / iaintheindie
    🎉 Thankyou to all of the Patrons 🎉
    ➔ Arman
    ➔ Kieran B
    ➔ Grant Coble-Neal
    ➔ John Kenneth Douglas
    ➔ Kasper Enwall
    ➔ Tylah Heil
    ➔ James McCarthy
    ➔ Travis Mosier
    ➔ Sam Orme
    ➔ Benjamin Russell
    ➔ Seriphis
    ➔ SiliconOrchid
    ➔ Callan Syratt
    ➔ Serj Tomas
    #Unity #Tutorial #GameDev

Komentáře • 12

  • @burakkaganylmaz7481
    @burakkaganylmaz7481 Před 3 měsíci +2

    Great video sir, thank you.

  • @blahblah-qt9ot
    @blahblah-qt9ot Před 4 měsíci +6

    underrated channel

    • @IainTheIndie
      @IainTheIndie  Před 4 měsíci +1

      Thankyou :) It's a slow build but a steady one.

  • @matheusreidopedaco
    @matheusreidopedaco Před 3 měsíci +1

    I've been a big critic of this pattern, but good video.

    • @IainTheIndie
      @IainTheIndie  Před 3 měsíci +1

      I think like a lot of patterns there can be a tendency for folks to overhype or overuse them. I tend to approach most patterns as being a useful thing to know about but not something to force into every project.

  • @hemanthpredator7381
    @hemanthpredator7381 Před 4 měsíci +2

    My weekly dose of dopamine is here right on time. Really interesting tutorial

  • @ragerungames
    @ragerungames Před 4 měsíci +1

    Great Tutorial. Pretty advance stuff, i have watched half of it, will be completing it all soon. thanks