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

(9356)

2D

(241)

Ads

(43)

AI & Navigation

(71)

Analytics

(106)

Animation

(330)

Asset Store

(243)

Assets

(497)

Audio

(159)

Cloud Build

(102)

Collaborate

(33)

Docs & Tutorials

(203)

Editor

(2160)

Everyplay

(13)

Game Performance Reporting

(15)

General

(831)

Graphics

(791)

GUI

(373)

Input

(150)

Licensing

(77)

Networking

(163)

Physics

(349)

Platforms

(413)

Profiling & Optimization

(72)

Runtime

(164)

Scripting

(1044)

Terrain

(152)

WebGL

(134)