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.

SurfaceObserver.SetVolumeAsFrustum

public void SetVolumeAsFrustum(Plane[] planes);

Parameters

planes Planes defining the frustum as returned from GeometryUtility.CalculateFrustumPlanes.

Description

This method sets the observation volume as a frustum at the requested location. Successive calls can be used to reshape the observation volume and/or to move it in the scene as needed.