ufism.blogg.se

Modding api hollow knight how to install
Modding api hollow knight how to install







ModHooks.HeroUpdateHook the Modding api provides us with certain events that we can react to, this is what allows us to code things that respond to in game events.Initialize is called when the Api is ready for our mod to start making modifications, this is also the place where preloads are provided (more on that in a bit).GetVersion serves a similar purpose but for the version of our mod.GetName() for example allows us to set our mods name as it will appear in game, in the top-left mods list. new public string GetName() => "My First Mod" The Mod class has a few special methods that if provided by out mod allows us to do a few interesting things.public class MyFirstMod : Mod we define a new public class called MyFirstMod that extends the Mod base class, this is the class that will be loaded by the Modding api, and this is where we will tell the game about our mod.Next, we create our own namespace called MyFirstMod this will contain our mod.The first few lines are using statements, where we tell the C# compiler the namespaces that we are going to be using in our file.it will however take some common things that you will have to do every time you start a project and do them for you, which is nice. Strictly speaking, there is no need to use a template to create your mod. Tip: if your IDE supports it, using an extension can simplify or eliminate many of the steps below! This video by Game Maker's Toolkit is a good introduction to unity.

modding api hollow knight how to install

While not entirely mandatory, knowing about unity concepts is immensely helpful in creating the mental model required for making your own mods.

modding api hollow knight how to install

The video series is especially beginner friendly, so you may want to try that ! Unity Fundamentals

  • A tour of the C# language Article Series.
  • modding api hollow knight how to install modding api hollow knight how to install

    Note : if you prefer to follow along with a video see the modding tutorial Basics of C#īefore we take a deep dive into writing your first mod, we need to take a look at C#, the programming language that we would be using to create our mods, it would certainly be helpful if you know a little bit about programming already, but if not then you can use the resources in this section to get a basic understanding of programming and C#.









    Modding api hollow knight how to install