文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetRayGenerationShaderName(RayTracingShader, int)

Returns the name of a user-defined ray generation Shader from within a RayTracingShader.
阅读时间1 分钟最后更新于 24 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static string GetRayGenerationShaderName(RayTracingShader s, int shaderIndex)

Parameters


shaderIndex

The ray generation Shader index for which to retrieve the name.

Returns

Type

Description

stringThe name of the ray generation Shader at the index passed using the "shaderIndex" argument.

Remarks