LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

CullResults.GetLightIndexMap

public int[] GetLightIndexMap();

Returns

int[] Array of indices that map from VisibleLight indices to internal per-object light list indices.

Description

If a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists.