Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSubshader(int)

Obtains the runtime subshader at the given index.
Read time 1 minuteLast updated 4 days ago

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.