Skip to main content

Apply

The bar at the bottom writes the material you just picked. The Apply tab collects several materials and runs them the same way.

Apply bar
Apply, scope, original or copy, and Revert

Write the current material​

  1. Click Apply.
  2. Choose the channels in the scope next to it. All channels writes every supported channel.
  3. Write to original writes the current material asset. Write to a copy creates a sibling copy, or reuses the copy already created.
  4. Revert puts the current material back to the moment just before the latest apply from this window.

Write to a copy assigns the copy to the matching renderer slots in loaded scenes and leaves the original asset alone. If you never picked a surface in the scene, there is no slot to assign, and the original is left alone too.

Apply is recorded in Unity's undo. Ctrl+Z and Ctrl+Y work as usual.

Keep values you edited by hand​

Applying leaves an apply record, <material name>.tca.asset, next to the material. It holds the values Toon Color Assistant wrote and the material type, base colour, controls and scope of that apply. Moving, renaming or deleting the material inside Unity moves, renames or deletes the record with it.

When a value the material had differs from the new one, the Values to keep window opens.

  • Already set: on a material without a record, a value that differs from the shader's default, and any feature the apply turns on or off, such as the outline or backlight. It is overwritten by default; Keep all keeps them in one go.
  • Edited by hand: on a material with a record, a value that changed after the last apply. It is kept by default; uncheck it to take the new value.

A checked value keeps what the material had, and stays protected as Edited by hand on the next apply. With nothing to show, the apply goes ahead without the window. The new values are already written when the window opens, so undo the apply to cancel it as a whole.

Picking a material that has a record loads the material type, base colour, controls and scope of its last apply. One Apply writes freshly calculated values with the same intent.

Shared palettes​

Shared palettes on the Apply tab let materials that should look alike share one base colour and one set of controls.

  1. Pick a material and press New palette. It saves the current base colour and controls as a palette file: the first one in Assets/Toon Color Assistant/Palettes/, later ones next to an existing palette.
  2. Pick another material, choose that palette in Palette, and apply.

Applying with a palette chosen saves the base colour and controls of that moment into it, and the other materials of the set use them on their next apply. The list shows how many materials use each palette. Remove unused palettes moves palettes no material, scene or prefab uses to the trash. When a palette a material used was deleted, a notice appears and Recreate restores it from the copy kept in the apply record.

What is decided along with the write​

Apply options on the Apply tab has two switches.

While Set all colours and numeric values automatically is on, strength, border, and blur are written with the colours, and a gloss matcap is generated and assigned too. Off writes colours only.

Also turn off optional features decides whether backlight and highlight marked Optional are turned off. Off leaves them as the material already has them. Turn off not recommended features decides whether backlight, highlight, and gloss marked Not Recommended are turned off. It is on by default; off leaves those features as the material has them and still applies their colour. Recommended is always turned on. Shadow and rim are turned on when you apply. The outline does not follow these switches. It follows Use Outline on the Shading tab.

Several materials​

Apply tab
The target list, Include, issues to fix, and Apply to All Targets

Two ways to add a material:

  • Drag it onto Drop materials here to add targets.
  • Click Add Selected Materials for materials selected in the Project window.

Only rows with Include checked are part of Apply to All Targets. Remove drops that row. Revert All Targets restores the saved state of the included targets.

Each row shows the material's sampled base colour and the primary shadow it will receive. Every target uses the picked material's palette and material type. A target whose base colour is darker than the shared shadow gets the nearest colour it can show. Preview follows the same set. How that works is on Preview.

Settings that have to change before anything shows up​

Materials whose shader settings would ignore the written colour are gathered under Issues to fix, above the list. The button under each reason changes only that setting. Examples are Switch to Multilayer Math, Set outline tint mix to 0, and Turn it on. Nothing changes until you click, and the click can be undone.