Skip to content

Kerrryu/Modigine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Open Source Modding Tool

(Early Development) Not ready for use in projects


Currently Supports:

  • Lua (.lua)
  • Meshes (.obj)
  • Textures (.png, .jpg, .jpeg)
  • More coming soon

Need to handle custom file types? Here is how you can add a new FileRegister:

  1. Create a new class implementing the IFileRegister Interface
using Modigine;

public class LuaRegister : IRegister
{
    public void Load(string filePath)
    {
        string content = File.ReadAllText(filePath);
        Modigine.luaManager.AddScript(content);
        Modigine.print("Loaded " + filePath);
    }
}
  1. Register the new FileRegister with the RegisterLoader class
void Awake()
{
    // FORMAT: Modigine.registerManager.AddRegister(new FileRegister(new RegisterClassName(), fileType1, fileType2, fileType3,...));
    Modigine.registerManager.AddRegister(new FileRegister(new LuaRegister(), "lua"));
    Modigine.registerManager.AddRegister(new FileRegister(new TextureRegister(), "png", "jpg", "jpeg")
}

About

An open source mod manager for Unity

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages