Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenderParams

Rendering parameters used by various rendering functions.
Read time 2 minutesLast updated 5 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public struct RenderParams

Remarks

This struct defines common parameters shared across various rendering functions.

Constructors

Constructor

Description

RenderParams(UnityEngine.Material)Constructor.

Properties

Property

Description

cameraThe camera used for rendering. If set to
null
(default) renders for all cameras.
entityIdThe EntityId of the GameObject that issues the draw. Provide an EntityId to make a rendered GameObject pickable in the scene view when you click on it. The default value is EntityId.None, which means that you can't pick or outline the procedural GameObject in the scene view.
forceMeshLodForce Unity to use a specific Mesh LOD if the mesh has Mesh LODs.
layerLayer used for rendering. Layer to use.
lightProbeUsageThe type of light probe usage.
materialMaterial used for rendering.
matPropsMaterial properties used for rendering.
meshLodSelectionBiasBias to add to the calculated value when selecting a Mesh LOD level.
motionVectorModeMotion vector mode used for rendering.
overrideSceneCullingMaskUses the RenderParams.sceneCullingMask property to specify a custom SceneCullingMasks. This property is only available in the Editor, you can still access it in a Player but it'll be ignored.
receiveShadowsWhether the rendered geometry should receive shadows.
reflectionProbeUsageThe type of reflection probe used for rendering.
rendererPriorityRenderer priority.
renderingLayerMaskRenderer layer mask used for rendering.
sceneCullingMaskOverrides the scene culling mask for the rendered object. This can help you control prefab stage visibility or entities sub-scene visibiliy. This property is only available in the Editor, you can still access it in a Player but it'll be ignored..
shadowCastingModeDescribes if geometry should cast shadows.
sortingLayerIDThe sorting layer used for rendering.
sortingOrderThe sorting order, which determines the rendering priority within each sorting layer.
worldBoundsDefines world space bounds for the geometry. Used to cull and sort the rendered geometry.