Search Feedback

11
votes

Light component need variable isVisible

General

-

-

I create a custom logic for light intensity, color etc. using animation curve and custom wind system.

I want to disable Update() logic when Light culled by Camera. Light is not a Renderer, so isVisible don`t work. I create own code to check visibility by frustum, but this is additional calculation.

I think Unity3D render system check lights before render by frustum, so you can add boolean variable isVisible to Light.

Comments (1)

  1. 495e55a1ab7af58b9c2dbec7b81135f1?d=mm

    Peter77

    Dec 06, 2017 08:24

    You should look into the CullingGroup API:
    https://docs.unity3d.com/Manual/CullingGroupAPI.html

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10511)

2D

(274)

Ads

(52)

AI & Navigation

(78)

Analytics

(125)

Animation

(389)

Asset Store

(330)

Asset Store Publisher

(10)

Assets

(534)

Audio

(176)

Cloud Build

(139)

Collaborate

(57)

Docs & Tutorials

(237)

Editor

(2450)

Everyplay

(14)

Game Performance Reporting

(15)

General

(950)

Graphics

(861)

GUI

(422)

Input

(165)

Licensing

(88)

Networking

(185)

Physics

(380)

Platforms

(438)

Profiling & Optimization

(81)

Runtime

(180)

Scripting

(1146)

Terrain

(168)

WebGL

(141)