文档

Unity Engine

Unity Engine

GetSubshader(int)

Obtains the runtime subshader at the given index.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public ShaderData.Subshader GetSubshader(int index)

Parameters

index

The index of the subshader.

Returns

Type

Description

SubshaderThe associated runtime subshader or null if none exists.