A NeosModLoader mod for Neos VR that allows other mods to hook into Neos' asset import.
- Install NeosModLoader.
- Download NeosAssetImportHook.dll.
- Copy it into the
nml_mods
directory inside your Neos install. - Start the game. If you want to verify that the mod is working you can check your Neos logs.
Install the mod into Neos and reference it there.
Make sure that you put NeosAssetImportHook.dll into the nml_mods directory before building your own mod.
AssetImportHooks.PostImport += (Slot slot, Type mainAssetType, IList<IAssetProvider> allAssets) =>
{
//will be executed on every import
};
AssetImportHooks.PostImport += AssetImportHooks.Typed<Mesh>(Slot slot, IList<IAssetProvider<A>> mainAssets, IList<IAssetProvider> otherAssets) =>
{
//will only be executed for 3D model imports
//mainAssets contains all AssetProvider<Mesh> instances, secondaryAssets everything else
};
See AssetImportHooks.cs more info.