Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Experimental: this API is experimental and might be changed or removed in the future.

InputFilter

struct in UnityEngine.Experimental.Rendering

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Describes which subset of visible objects to render.

RenderLoop.DrawRenderers can render subset of visible objects via DrawRendererSettings.inputFilter value. Objects can be filtered by their material's render queue and game object's layer.

See Also: RenderLoop.DrawRenderers, DrawRendererSettings.inputFilter.

Properties

layerMaskOnly render objects in the given layer mask.
renderQueueMaxRender objects that have material render queue smaller or equal to this.
renderQueueMinRender objects that have material render queue larger or equal to this.

Public Methods

SetQueuesOpaqueSet to render only opaque objects.
SetQueuesTransparentSet to render only transparent objects.

Static Methods

DefaultDefault input filter: render all objects.

Did you find this page useful? Please give it a rating: