Search Feedback

32
votes

Add ParticleSystem.IsAutomaticCullingEnabled property

Scripting

-

-

I just implemented a custom culling for our particle systems (as suggested here: https://blogs.unity3d.com/2016/12/20/unitytips-particlesystem-performance-culling/). Our artist then attached the custom culling component to our particle systems.
Everything would be perfect, but then he tweaked some of these particle systems in the future so that they were suddenly capable of the automatic culling. But he forgot to remove the custom culling components, so every single one of these particle systems is being culled twice now (both automatic culled and custom culled).

Possible solution would be to add something like a 'IsAutomaticCullingEnabled' property to the UnityEngine.ParticleSystem class. I could then validate whether the custom culling should be used or not. Or even whether someone forgot to add the custom culling component etc.

Comments (1)

  1. A4636cbdd380e995e3e0000c9474b244?d=mm

    SM_AF

    Sep 20, 2017 12:26

    Or at least editor time API to get the text from here https://github.com/MattRix/UnityDecompiled/blob/master/UnityEditor/UnityEditor/ParticleSystemUI.cs#L418 (note: 'm_SupportsCullingTextLabel' field)

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

(9110)

2D

(224)

Ads

(40)

AI & Navigation

(68)

Analytics

(96)

Animation

(309)

Asset Store

(229)

Assets

(493)

Audio

(158)

Cloud Build

(95)

Collaborate

(32)

Docs & Tutorials

(198)

Editor

(2102)

Everyplay

(13)

Game Performance Reporting

(13)

General

(819)

Graphics

(768)

GUI

(365)

Input

(146)

Licensing

(75)

Networking

(158)

Physics

(343)

Platforms

(405)

Profiling & Optimization

(69)

Runtime

(162)

Scripting

(1022)

Terrain

(150)

WebGL

(131)