Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSerializedSubshader(int)

Obtains the serialized subshader at the given index.
Read time 1 minuteLast updated 8 days ago

Definition

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

Parameters

index

The index of the serialized subshader.

Returns

Type

Description

SubshaderThe associated serialized subshader or null if none exists.