Class DecalProjector
Decal Projector component.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[CoreRPHelpURL("renderer-feature-decal", "com.unity.render-pipelines.universal")]
[ExecuteAlways]
[CanEditMultipleObjects]
[AddComponentMenu("Rendering/URP Decal Projector")]
public class DecalProjector : MonoBehaviour
Properties
| Name | Description |
|---|---|
| drawDistance | Distance from camera at which the Decal is not rendered anymore. |
| endAngleFade | Angle between decal backward orientation and vertex normal of receiving surface at which the Decal end to fade off. |
| fadeFactor | Controls the transparency of the decal. |
| fadeScale | Percent of the distance from the camera at which this Decal start to fade off. |
| material | The material used by the decal. |
| pivot | Change the offset position. Do not expose: Could be changed by the inspector when manipulating the gizmo. |
| renderingLayerMask | The layer of the decal. |
| scaleMode | The scaling mode to apply to decals that use this Decal Projector. |
| size | The size of the projection volume. |
| startAngleFade | Angle between decal backward orientation and vertex normal of receiving surface at which the Decal start to fade off. |
| uvBias | Offset of the UV of the projected texture. |
| uvScale | Tilling of the UV of the projected texture. |
Methods
| Name | Description |
|---|---|
| IsValid() | Checks if material is valid for rendering decals. |