Caution
This package is discontinued. Please use the successor package, KRT Material Tools.
[ English | 日本語 | Demo (YouTube) ]
Unity editor extension to replace materials at once by defining replacement rules.
This save the hassle of manually changing materials one by one. It would be useful when applying your own materials to dressed avatars.
This extension is designed for services such as VRChat, but it's usable for any purpose.
Verified Unity versions
- Unity 2019.4.31f1
There are two options to import the package into your project.
- Download the latest
.unitypackage
from the release page or Booth. - Add
https://github.com/kurotu/MaterialReplacer.git
from UPM.
- Right click in project pane, then select Create -> Material Replacer -> Material Replacer Rule.
- Select the created
MaterialReplacerRule.asset
. - Add
Original
andReplaced
materials in an inspector.- Original: Materials which will be replaced.
- Replaced: Materials which will be applied instead of
Original
(When it's None,Original
will be kept).
ℹ️ You can set
Reference Object
then pressAdd to Original Materials
. It's easier than adding original materials one by one.
- Select the menu, Window -> Material Replacer to show the Material Replacer window.
ℹ️ You can also select the menu, Material Replacer from the right click menu on a GameObject in the scene.
- Set
Game Object
andMaterial Replacer Rule
in the window. - Press
Apply
. - All renderers' materials of
Game Object
and its descendants will be replaced byMaterial Replacer Rule
.
The MIT License.
- VRCID: kurotu
- Twitter: @kurotu
- GitHub: kurotu/MaterialReplacer