unity-manual-material

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Triggers

触发场景

  • Creating a new Material asset
  • Changing a material color or shader
  • Dragging a material onto a MeshRenderer or Mesh
  • 创建新的Material资源
  • 修改材质颜色或Shader
  • 将材质拖放到MeshRenderer或Mesh上

Manual Material Tasks

手动材质操作任务

Step-by-step instructions for Material operations inside the Unity Editor. Paths assume the default English Unity UI; translate the labels into the user's Unity language when replying.
以下是Unity Editor内材质操作的分步说明。路径基于默认英文Unity UI;回复时请将标签翻译为用户使用的Unity语言。

When to guide manually vs automate

何时选择手动操作 vs 自动化操作

Guide manually when the user can finish the task in 3 clicks or fewer: creating one Material, picking a color, or assigning a Material to one object.
Automate when the task involves bulk material creation, batch property edits, shader keyword toggles across many materials, or render-queue changes — use the material REST module instead.
当用户可以通过3次或更少点击完成任务时,引导手动操作:创建单个Material、选择颜色,或将Material分配给单个对象。
当任务涉及批量创建材质、批量编辑属性、跨多个材质切换Shader关键字,或修改渲染队列时,选择自动化操作——请改用material REST模块。

Create a Material asset

创建Material资源

Step 1 — Open the create menu in the Project window

步骤1 — 打开Project窗口中的创建菜单

Right-click in the Project window, then choose Create > Material.
Alternative path:
  • Main menu
    Assets > Create > Material
在Project窗口中右键点击,然后选择Create > Material
备选路径:
  • 主菜单
    Assets > Create > Material

Step 2 — Name the Material

步骤2 — 命名Material

Type the new name and press Enter.
输入新名称并按Enter键。

Change the Material color

修改Material颜色

Step 1 — Select the Material

步骤1 — 选择Material

Click the Material asset in the Project window.
点击Project窗口中的Material资源。

Step 2 — Edit the Base Color / Albedo

步骤2 — 编辑Base Color / Albedo

In the Inspector:
  • For URP/HDRP Lit shaders, click the Base Map color swatch (or Base Color field).
  • For Built-in Standard, click the Albedo color swatch.
  • Pick a color in the color picker and close it.
在Inspector面板中:
  • 对于URP/HDRP Lit shader,点击Base Map颜色样本(或Base Color字段)。
  • 对于内置Standard shader,点击Albedo颜色样本。
  • 在颜色选择器中选取颜色并关闭窗口。

Change the shader

修改Shader

Step 1 — Select the Material

步骤1 — 选择Material

Select the Material asset in the Project window.
在Project窗口中选择Material资源。

Step 2 — Change Shader

步骤2 — 更改Shader

At the top of the Inspector, click the Shader dropdown and choose a shader (e.g.,
Universal Render Pipeline > Lit
,
Standard
,
Unlit/Color
).
The available shader list depends on the active render pipeline and installed packages.
在Inspector面板顶部,点击Shader下拉菜单并选择一个shader(例如:
Universal Render Pipeline > Lit
Standard
Unlit/Color
)。
可用的shader列表取决于当前激活的渲染管线和已安装的包。

Assign a Material to an object

将Material分配给对象

Step 1 — Drag the Material

步骤1 — 拖动Material

Click and drag the Material asset from the Project window.
从Project窗口中点击并拖动Material资源。

Step 2 — Drop it onto the object

步骤2 — 拖放到对象上

Drop the Material onto:
  • The object in the Scene view.
  • The object's entry in the Hierarchy.
  • The Material slot in the Mesh Renderer component in the Inspector.
将Material拖放到以下位置:
  • Scene视图中的对象。
  • Hierarchy面板中的对象条目。
  • Inspector面板中Mesh Renderer组件的Material插槽。

Create and assign a Material quickly

快速创建并分配Material

Step 1 — Drag the Material

步骤1 — 拖动Material

Drag a Material asset from the Project window.
从Project窗口中拖动Material资源。

Step 2 — Drop it onto a blank Project folder

步骤2 — 拖放到空白Project文件夹

Hold
Ctrl
(or follow the on-screen modifier hint) while dropping if you want to duplicate the Material instead.
如果想要复制Material,请在拖动时按住
Ctrl
(或遵循屏幕上的修饰键提示)。

Automate instead?

是否需要自动化操作?

If the user wants to edit many Materials, set exact numeric properties, swap shaders in bulk, or assign Materials to many objects, switch to the REST module:
  • material
如果用户想要编辑多个Material、设置精确的数值属性、批量替换Shader,或将Material分配给多个对象,请切换到REST模块:
  • material