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

(10490)

2D

(266)

Ads

(51)

AI & Navigation

(90)

Analytics

(118)

Animation

(376)

Asset Store

(283)

Asset Store Publisher

(2)

Assets

(514)

Audio

(173)

Cloud Build

(128)

Collaborate

(46)

Docs & Tutorials

(225)

Editor

(2341)

Everyplay

(13)

Game Performance Reporting

(17)

General

(1270)

Graphics

(840)

GUI

(408)

Input

(159)

Licensing

(85)

Networking

(180)

Physics

(371)

Platforms

(432)

Profiling & Optimization

(78)

Runtime

(175)

Scripting

(1117)

Terrain

(165)

WebGL

(140)