Skip to content

mpmxyz/NeosAssetImportHook

Repository files navigation

NeosAssetImportHook

A NeosModLoader mod for Neos VR that allows other mods to hook into Neos' asset import.

Installation

  1. Install NeosModLoader.
  2. Download NeosAssetImportHook.dll.
  3. Copy it into the nml_mods directory inside your Neos install.
  4. Start the game. If you want to verify that the mod is working you can check your Neos logs.

Library Usage

Local Development

Install the mod into Neos and reference it there.

Github workflow

Make sure that you put NeosAssetImportHook.dll into the nml_mods directory before building your own mod.

API

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages