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.

SurfaceObserver.SetVolumeAsFrustum

public void SetVolumeAsFrustum(Plane[] planes);

Parameters

planesPlanes 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.