Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

CullingGroup.targetCamera

public Camera targetCamera;

Description

Locks the CullingGroup to a specific camera.

If targetCamera is assigned then the bounding spheres will only be culled from the perspective of that camera.