Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PerObjectData

What kind of per-object data to setup during rendering.
Read time 1 minuteLast updated 5 days ago

Definition

[Flags]public enum PerObjectData

Remarks

At minimum, object transformation matrices are set up per-object, but extra data (e.g. lightmaps, light probes etc.) can be set up by combining PerObjectData flags.

Fields

Value

Description

LightDataSetup per-object light data.
LightIndicesSetup per-object light indices.
LightmapsSetup per-object lightmaps.
LightProbeSetup per-object light probe SH data.
LightProbeProxyVolumeSetup per-object light probe proxy volume data.
MotionVectorsSetup per-object motion vectors.
NoneDo not setup any particular per-object data besides the transformation matrix.
OcclusionProbeSetup per-object occlusion probe data.
OcclusionProbeProxyVolumeSetup per-object occlusion probe proxy volume data (occlusion in alpha channels).
ReflectionProbeDataSetup per-object reflection probe index offset and count.
ReflectionProbesSetup per-object reflection probe data.
ShadowMaskSetup per-object shadowmask.