文档

Unity Engine

Unity Engine

FindShaderByName(string)

Override for customizing the behavior of the Shader.Find function.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
protected virtual Shader FindShaderByName(string name)

Parameters

name

The name of the shader to find.

Returns

Type

Description

ShaderThe shader that matches the specified name, or null if no shader matches.