https://github.com/Kerrryu/Modigine
An open source mod manager for Unity
https://github.com/Kerrryu/Modigine
unity3d unity3d-framework unity3d-plugin
Last synced: 9 months ago
JSON representation
An open source mod manager for Unity
- Host: GitHub
- URL: https://github.com/Kerrryu/Modigine
- Owner: Kerrryu
- Created: 2019-04-17T02:15:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-21T20:51:28.000Z (over 6 years ago)
- Last Synced: 2024-11-07T16:02:58.913Z (about 1 year ago)
- Topics: unity3d, unity3d-framework, unity3d-plugin
- Language: C#
- Homepage:
- Size: 847 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
### 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
```C#
using Modigine;
public class LuaRegister : IRegister
{
public void Load(string filePath)
{
string content = File.ReadAllText(filePath);
Modigine.luaManager.AddScript(content);
Modigine.print("Loaded " + filePath);
}
}
```
2) Register the new FileRegister with the RegisterLoader class
```C#
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")
}
```
***