unity-graphics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBefore 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) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.GET /skills/recommend?includeSchema=true
在调用本模块中的任何Skill之前: 如果您打算根据名称或描述猜测参数来调用Skill,请停止——先阅读本文档(或通过获取其schema)。如果您已经从recommend/schema获得了参数定义,可以直接进入dryRun环节。GET /skills/recommend?includeSchema=true
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) aregraphics_get_shader_stripping— they run in all three modes without grant.SkillMode.SemiAuto - 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) aregraphics_set_shader_stripping— under Approval they need user grant (grant triggers one server-side execute returning the result); under Auto / Bypass they execute directly.SkillMode.FullAuto - This module contains no Delete / PlayMode / Reload / high-risk skills (no NeverInSemi). is a list mutation, not a
graphics_remove_always_included_shader.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——在Approval模式下需要用户授权(授权后触发一次服务器端执行并返回结果);在Auto / Bypass模式下可直接执行。SkillMode.FullAuto - 本模块不包含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_overviewgraphics_get_overview
graphics_get_overviewGet a graphics/quality/render-pipeline summary.
获取图形/画质/渲染管线的汇总信息。
graphics_get_quality_settings
graphics_get_quality_settingsgraphics_get_quality_settings
graphics_get_quality_settingsList quality levels and their render pipeline overrides.
列出质量等级及其渲染管线覆盖设置。
graphics_set_quality_level
graphics_set_quality_levelgraphics_set_quality_level
graphics_set_quality_levelSwitch the active quality level.
切换当前生效的质量等级。
graphics_get_render_pipeline_assets
graphics_get_render_pipeline_assetsgraphics_get_render_pipeline_assets
graphics_get_render_pipeline_assetsList default/current/per-quality render pipeline assets.
列出默认/当前/各质量等级对应的渲染管线资源。
graphics_set_default_render_pipeline
graphics_set_default_render_pipelinegraphics_set_default_render_pipeline
graphics_set_default_render_pipelineSet or clear the default SRP asset.
设置或清除默认SRP资源。
graphics_set_quality_render_pipeline
graphics_set_quality_render_pipelinegraphics_set_quality_render_pipeline
graphics_set_quality_render_pipelineAssign or clear the SRP asset for a specific quality level.
为指定质量等级分配或清除SRP资源。
graphics_list_always_included_shaders
graphics_list_always_included_shadersgraphics_list_always_included_shaders
graphics_list_always_included_shadersList shaders in Always Included Shaders.
列出Always Included Shaders中的着色器。
graphics_add_always_included_shader
graphics_add_always_included_shadergraphics_add_always_included_shader
graphics_add_always_included_shaderAdd a shader to Always Included Shaders.
向Always Included Shaders中添加着色器。
graphics_remove_always_included_shader
graphics_remove_always_included_shadergraphics_remove_always_included_shader
graphics_remove_always_included_shaderRemove a shader from Always Included Shaders.
从Always Included Shaders中移除着色器。
graphics_get_shader_stripping
graphics_get_shader_strippinggraphics_get_shader_stripping
graphics_get_shader_strippingInspect shader stripping configuration in GraphicsSettings.
查看GraphicsSettings中的着色器剥离配置。
graphics_set_shader_stripping
graphics_set_shader_strippinggraphics_set_shader_stripping
graphics_set_shader_strippingModify shader stripping configuration in GraphicsSettings.
修改GraphicsSettings中的着色器剥离配置。
Exact Signatures
精确签名
Exact names, parameters, defaults, and returns are defined by or , not by this file.
GET /skills/schemaunity_skills.get_skill_schema()Skill的精确名称、参数、默认值和返回值由或定义,而非本文档。
GET /skills/schemaunity_skills.get_skill_schema()