The Entity and Model parts let you change sub materials without any additional parts.
Simply create your materials, give them a name and then paste that name into the sub material slot you want to replace.
Download: submaterial_entity.txt
The Material part allows you to replace individual materials on your model by using the material override setting.
Download: material_override.txt
This method won't work if you're already using entity/model submaterials.
First create your materials:
name
field). Make sure that it is unique.Once that's done, add the Model > :submaterial: Submaterial part, then:
sub material id
field. Click on …
and select the material that you want to replace.material
field.
If you want the :submaterial: Submaterial to affect a model different than your entity, simply add it as a child of that model. There is a chance that this will break materials on your entity, to fix that simply add an empty :submaterial: Submaterial to your entity and set the sub material id
field to the same value as the one that is affecting the model.
In the example below I made two materials:
color
will change the color. It has color2
variable set to green.texture
will replace the texture on Alyx. It has an edited .PNG texture link pasted into base texture
field.Download this example: submaterial.txt