Presets, Shader Setting & Tools
Besides the material settings, the NekoToon inspector has a Preset tab for applying and saving looks, a Shader Setting tab for project-wide options, and an Optimization section at the end of the material settings. NekoToon also adds tools to Unity's Assets, GameObject and Window menus.
The three tabs at the top of the inspector are Advanced (the material settings, see The inspector), Preset and Shader Setting.
Presets#
A preset stores a set of material values (and optionally the rendering mode and textures) so you can apply a look with one click. Presets are assets of type NekoToonPreset; every preset found in the project is listed, including the ones NekoToon ships with.
Preset list#
Presets are grouped by category: Skin, Hair, Cloth, Nature, Inorganic, Effect and Other. Click a preset to apply it to all selected materials; the change can be undone. The bundled presets include Skin (Anime, Flat, Illust, Outline, OutlineShadow), Hair (Anime, Illust, Outline, OutlineRimLight, Standard), Cloth (Anime, Illust, Outline, Standard), Inorganic (Glass, LiteGlass, Metal, Metal (MatCap)) and Nature (Fur).
Refresh List#
Searches the project again for preset assets. Use it after importing or creating presets outside the inspector.
Save Preset#
Opens the [NekoToon] Preset Window for the selected material. Enter a Preset Name (one field per inspector language), pick a Category, choose under Save target which groups of settings to store (Rendering Mode, Render Queue, Apply main texture to outline, and each feature section) and under Save target texture which textures to include, then press Save to write the preset asset.
In the Advanced tab, the Presets row above the sections offers the same things in a compact form: Opaque / Cutout / Transparent and Outline buttons, a Preset ▾ drop-down that lists the presets by category, and a save icon that opens the Preset Window. The row is hidden for Fur, Refraction, Gem and fake-shadow materials.
Presets are not available for NekoToonLite materials.
Shader Setting#
The Shader Setting tab holds options that apply to all NekoToon materials in the project, not just the selected one. They are saved in ProjectSettings/NekoToonSetting.json. Changing most of them rewrites and reimports the NekoToon shaders, so Unity recompiles shaders for a moment.
How NekoToon keeps shaders small. In the editor every shader feature is compiled in, so you can turn anything on while you work. When you build or upload an avatar, NekoToon scans the avatar's materials and animation clips, turns off every feature none of them use, bakes properties that never change into constants, builds, and then restores the full shaders. This keeps the uploaded avatar smaller and lighter without any manual feature list. The options below control when this happens.
Lock#
Freezes the current settings by saving them to SettingLock.json in the NekoToon folder. While locked, the build-size and LightMode options are greyed out and the locked values are used instead of the project's own settings. Useful when a package or team should always use the same configuration. Turn it off to delete the lock file.
Optimize in test build#
Only shown when the VRChat Avatars SDK is installed. Uploads (Build & Publish) are always optimized; with this on, Build & Test is optimized too, so the test avatar matches what you upload. Leave it off for faster test builds.
Optimize in NDMF (Apply on Play)#
When an NDMF-based tool (such as Modular Avatar) processes the avatar on entering Play mode, NekoToon normally skips the optimization to keep Play mode fast. Turn this on to optimize there as well, for example to check that nothing goes missing after optimization.
[Debug] Optimize in editor#
Keeps the shaders in the editor in their optimized state: NekoToon scans the materials and animations referenced by the scenes and strips unused features right away instead of only during a build. Meant for debugging; it makes turning on new features slower because the shaders have to be rebuilt each time.
Migrate materials in startup#
On by default. When the editor starts, NekoToon checks every NekoToon material in the project and updates materials saved with an older NekoToon version to the current format. Turn it off in very large projects if the startup check is too slow, and use Run migration by hand instead.
Distance Clipping Canceller#
Found in the Shader Setting (for all materials) foldout. When the camera is so close that parts of the avatar would be cut away by the camera's near clipping plane, those vertices are pushed just inside it so they stay visible. Off by default. It does not apply in mirrors or in the shadow pass.
Build size optimization#
The Build size optimization (for all materials) foldout removes whole lighting paths from every NekoToon shader. Features turned off here are removed from the shaders, which reduces avatar size and load. Some options are only shown in the Built-in Render Pipeline (the one VRChat uses).
Enable shadow in ForwardAdd#
Applies the material's shadow settings to the lighting from additional per-pixel lights (point and spot lights), so those lights shade the toon way too. On by default.
Use ForwardAdd#
Keeps the ForwardAdd pass, which renders additional per-pixel lights. Turning it off removes that pass: the avatar becomes cheaper in scenes with many lights but no longer reacts to extra point or spot lights rendered per pixel. On by default.
Receive shadow in ForwardAdd#
Lets additional per-pixel lights cast real-time shadows onto the avatar. Off by default because it costs extra shader variants and is rarely needed on avatars.
Use lightmap#
Compiles lightmap support. Avatars are never lightmapped, so leave it off for avatars; turn it on only for static world objects that use baked lighting. Off by default.
VRC Light Volumes#
Shown when the VRChat SDK or the VRC Light Volumes package is installed. Lets NekoToon receive lighting from worlds that use VRC Light Volumes. On by default; turning it off removes that code.
Fix for Deffered#
Built-in Render Pipeline only, off by default. Makes outline shaders use the regular shadow-caster pass instead of the outline shadow-caster pass. Only turn it on if outline materials render incorrectly in a project that uses deferred rendering.
Default Value#
The Default Value (used for "Fix Lighting" and lighting presets) foldout sets the values that the menu tools write into materials.
[GameObject] Fix lighting#
Values that Fix lighting writes into every NekoToon material: As Unlit (default 0), Vertex Light Strength (0), Lower brightness limit (0.05), Upper brightness limit (1), Monochrome Lighting (0), and the HDRP-only Before exposure limit (10000) and Directional Light Strength (1). See Lighting for what each one does.
[Model] Setup from FBX#
The presets that Setup from FBX applies: Face, Skin, Hair and Cloth. Leave a slot empty to use the bundled default for it.
[Shader] LightMode Override#
Advanced: replaces the LightMode tag of individual shader passes (Main, Outline, Transparent backface, Fur, Fur Pre, Gem Pre) with the name you type, then Apply rebuilds the shaders. Only needed for special rendering setups that render passes by LightMode; leave the fields empty otherwise.
Optimization#
The last section of the material settings (Advanced tab). Its tools change the selected material or create new ones.
Remove unused textures#
Cleans up the material: deletes saved properties that the current shader does not have (left over from other shaders), and clears textures that belong to features which are turned off, for example a shadow mask when Shadow is off. This keeps unused textures out of the upload. It can be undone with Ctrl+Z.
If an animation turns a feature on at runtime, its textures count as unused while the feature is off in the material. Remove unused textures from the inspector does not know about your animations, so check toggled features afterwards. The build-time optimization does read animation clips.
Bake all layer / Bake Color Shift / Bake 2nd Layer / Bake 3rd layer#
Render the main color settings into a new texture and assign it to the material: everything, only the main color with its color adjustment (hue, saturation, value, gamma) and gradation, or only the 2nd or 3rd main color layer. A button does nothing if there is nothing to bake. Fewer texture layers at runtime means a cheaper material.
Convert to NekoToonLite / NekoToonMulti / MToon (VRM)#
Create a converted copy of the material: NekoToonLite is a lighter shader with fewer features, NekoToonMulti turns features on and off with keywords instead of separate shaders (not offered for Fur, Refraction and Gem), and MToon appears when MToon is installed, for VRM export.
Optimize for submission to the event#
Only shown in projects with the VRChat Worlds SDK. Removes unused properties and textures from the material, like Remove unused textures.
Bake#
A second box with one button per feature: Shadow 1st Color, 2nd Color, 3rd Color, Reflection, MatCap, MatCap 2nd, Rim Light and Outline Color Texture. Each multiplies that feature's color into its texture or mask and saves the result as a new texture, so one texture replaces texture plus color.
Menu tools#
Right-click an asset in the Project window (or use the Assets menu) and open NekoToon. Each entry is only enabled when a suitable asset is selected.
Right-click an object in the Hierarchy (or use the GameObject menu) and open NekoToon:
Fix lighting changes the Root Bone and Bounds of every skinned mesh (except meshes with a Cloth component). If you rely on specific root bones, for example for physics bones or other tools, check them afterwards. Use Ctrl+Z to undo.
Multi-Editor#
[Beta] NekoToon Multi-Editor#
Window/NekoToon
A separate window that shows the NekoToon inspector for every NekoToon material in the current selection, including materials inside selected folders. Changes apply to all of them at once, which is quicker than selecting materials one by one. If the materials use different NekoToon shaders, only the settings they share are shown. It is a beta feature: check the result on each material.