unity-graphics

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true
) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
在调用本模块中的任何Skill之前: 如果您打算根据名称或描述猜测参数来调用Skill,请停止——先阅读本文档(或通过
GET /skills/recommend?includeSchema=true
获取其schema)。如果您已经从recommend/schema获得了参数定义,可以直接进入dryRun环节。

Triggers

触发场景

  • Configuring project graphics/quality settings
  • Assigning an SRP asset
  • Adjusting quality levels
  • 配置工程图形/画质设置、指定 SRP 资产、调整质量等级
  • 配置项目图形/画质设置
  • 指定SRP资源
  • 调整质量等级
  • 配置工程图形/画质设置、指定 SRP 资产、调整质量等级

Graphics Skills

图形处理Skill

Project-wide graphics and quality settings (GraphicsSettings + QualitySettings) for Unity 2022.3+. Works in Built-in, URP and HDRP — does not depend on any SRP package being installed.
适用于Unity 2022.3+的项目级图形和画质设置(GraphicsSettings + QualitySettings)。支持Built-in、URP和HDRP渲染管线——无需安装任何SRP包即可运行。

Operating Mode

运行模式

  • Query skills (
    graphics_get_overview
    ,
    graphics_get_quality_settings
    ,
    graphics_get_render_pipeline_assets
    ,
    graphics_list_always_included_shaders
    ,
    graphics_get_shader_stripping
    ) are
    SkillMode.SemiAuto
    — they run in all three modes without grant.
  • Mutating skills (
    graphics_set_quality_level
    ,
    graphics_set_default_render_pipeline
    ,
    graphics_set_quality_render_pipeline
    ,
    graphics_add_always_included_shader
    ,
    graphics_remove_always_included_shader
    ,
    graphics_set_shader_stripping
    ) are
    SkillMode.FullAuto
    — under Approval they need user grant (grant triggers one server-side execute returning the result); under Auto / Bypass they execute directly.
  • This module contains no Delete / PlayMode / Reload / high-risk skills (no NeverInSemi).
    graphics_remove_always_included_shader
    is a list mutation, not a
    SkillOperation.Delete
    .
  • 查询类Skill(
    graphics_get_overview
    ,
    graphics_get_quality_settings
    ,
    graphics_get_render_pipeline_assets
    ,
    graphics_list_always_included_shaders
    ,
    graphics_get_shader_stripping
    )属于
    SkillMode.SemiAuto
    ——它们无需授权即可在三种模式下运行。
  • 修改类Skill(
    graphics_set_quality_level
    ,
    graphics_set_default_render_pipeline
    ,
    graphics_set_quality_render_pipeline
    ,
    graphics_add_always_included_shader
    ,
    graphics_remove_always_included_shader
    ,
    graphics_set_shader_stripping
    )属于
    SkillMode.FullAuto
    ——在Approval模式下需要用户授权(授权后触发一次服务器端执行并返回结果);在Auto / Bypass模式下可直接执行。
  • 本模块不包含Delete / PlayMode / Reload / 高风险Skill(无NeverInSemi类型)。
    graphics_remove_always_included_shader
    是列表修改操作,而非
    SkillOperation.Delete

Guardrails

防护规则

Routing:
  • For current render pipeline detection only:
    project_get_render_pipeline
  • For SRP/quality configuration: use this module, not
    project_*
路由规则:
  • 仅用于当前渲染管线检测:
    project_get_render_pipeline
  • 用于SRP/画质配置:使用本模块,而非
    project_*

Skills

Skill列表

graphics_get_overview

graphics_get_overview

Get a graphics/quality/render-pipeline summary.
获取图形/画质/渲染管线的汇总信息。

graphics_get_quality_settings

graphics_get_quality_settings

List quality levels and their render pipeline overrides.
列出质量等级及其渲染管线覆盖设置。

graphics_set_quality_level

graphics_set_quality_level

Switch the active quality level.
切换当前生效的质量等级。

graphics_get_render_pipeline_assets

graphics_get_render_pipeline_assets

List default/current/per-quality render pipeline assets.
列出默认/当前/各质量等级对应的渲染管线资源。

graphics_set_default_render_pipeline

graphics_set_default_render_pipeline

Set or clear the default SRP asset.
设置或清除默认SRP资源。

graphics_set_quality_render_pipeline

graphics_set_quality_render_pipeline

Assign or clear the SRP asset for a specific quality level.
为指定质量等级分配或清除SRP资源。

graphics_list_always_included_shaders

graphics_list_always_included_shaders

List shaders in Always Included Shaders.
列出Always Included Shaders中的着色器。

graphics_add_always_included_shader

graphics_add_always_included_shader

Add a shader to Always Included Shaders.
向Always Included Shaders中添加着色器。

graphics_remove_always_included_shader

graphics_remove_always_included_shader

Remove a shader from Always Included Shaders.
从Always Included Shaders中移除着色器。

graphics_get_shader_stripping

graphics_get_shader_stripping

Inspect shader stripping configuration in GraphicsSettings.
查看GraphicsSettings中的着色器剥离配置。

graphics_set_shader_stripping

graphics_set_shader_stripping

Modify shader stripping configuration in GraphicsSettings.

修改GraphicsSettings中的着色器剥离配置。

Exact Signatures

精确签名

Exact names, parameters, defaults, and returns are defined by
GET /skills/schema
or
unity_skills.get_skill_schema()
, not by this file.
Skill的精确名称、参数、默认值和返回值由
GET /skills/schema
unity_skills.get_skill_schema()
定义,而非本文档。