You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 7, 2026. It is now read-only.
lightyyt edited this page Jun 8, 2025
·
1 revision
How to set up your HumanoidAPI Project:
*Note: //... is a sign for the rest of the (Previous) code
1. Create a new .NET Project (Preferred: .NET 4.7.2 (net472) )
2. Include BepInEx and HumanoidAPI DLLs
Visual Studio: Right Click your C# Project (not the Solution), Add > Assembly Reference > Browse and select the DLL Locations
JetBrains Rider: Right Click your C# Project (not the Solution), Add > Reference > Add From and select the DLL Locations
(Default for R2Modman in Windows: %appdata%\r2modmanPlus-local\HumanFallFlat\profiles\Default\BepInEx)
3. Set up your BepInEx Project
Example:
namespaceMyHumanoidAPIPlugin;[BepInPlugin("com.myPlugin.me","myHumanoidAPIPlugin","1.0.0")]publicclassMyHumanoidApiPlugin:BaseUnityPlugin{//BepInEx LoggerinternalnewstaticManualLogSourceLogger;privatevoidAwake(){Logger=base.Logger;Logger.LogInfo($"My Plugin is loaded!");}}
4. Include HumanoidAPI as a Dependency
usingHumanoidAPI;namespaceMyHumanoidAPIPlugin;[BepInPlugin("com.myPlugin.me","myHumanoidAPIPlugin","1.0.0")][BepInDependency(HumanoidAPIInfo.PluginGuid)]//<- Add this linepublicclassMyHumanoidApiPlugin:BaseUnityPlugin{//...
5. Set up your Plugin as a detected HumanoidAPI Plugin
//...privatevoidAwake(){HAPI.InitPlugin("com.myPlugin.me","1.2.0");//Your Plugin GUID // (e.g. com.myPlugin.me) and the HAPI version your are using (e.g. 1.2.0)//...}