Home

Awesome

Frustum Culling Solution for Unity

Overview

The Frustum Culling Solution is Unity asset that enhances performance by culling both dynamic and static objects without relying on Unity’s built-in system. This solution does not require scene baking, allowing for the dynamic addition and spawning of objects. It leverages Unity's Burst Jobs to optimize calculations, ensuring efficient and rapid culling operations. It will work best on top down views. Its not using ray casting just checks if objects are in plane frustrum.

Features

Installation

  1. Import the Frustum Culling Solution package into your Unity project.
  2. Add the FrustumCullingController to your scene.
  3. Attach the FrustumCullingObject component to any GameObject you want to be culled.

Components

FrustumCullingObject

The FrustumCullingObject component handles the culling of individual objects.

Properties

Methods

Events

FrustumCullingController

The FrustumCullingController manages the culling process for all FrustumCullingObject instances.

Properties

Methods

Usage

Setting Up the Scene

  1. Add FrustumCullingController:

    • Create an empty GameObject and attach the FrustumCullingController component.
    • Configure the cameraTarget and targetCamera properties as needed.
  2. Add FrustumCullingObject:

    • Attach the FrustumCullingObject component to any GameObject you want to be culled.
    • Configure the objectType, boundsSource, and other properties as needed.

Dynamic Object Management

Performance Tips