Class DecalProjector
Decal Projector component.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[ExecuteAlways]
[CanEditMultipleObjects]
[AddComponentMenu("Rendering/HDRP Decal Projector")]
public class DecalProjector : MonoBehaviour, IVersionable<DecalProjector.Version>
Properties
Name | Description |
---|---|
affectsTransparency | Change the transparency. It is only compatible when using HDRP/Decal shader. |
decalLayerMask | The layer of the decal. |
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. It should be of type HDRP/Decal if you want to have transparency. |
pivot | Change the pivot position. It is an offset between the center of the projection and the transform position. |
scaleMode | The scaling mode to apply to decals that use this Decal Projector. |
size | The size of the projection volume. See also ResizeAroundPivot(Vector3) to rescale relatively to the pivot position. |
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() | Check if the material is set and if it is different than the default one |
ResizeAroundPivot(Vector3) | Update the pivot to resize centered on the pivot position. |
Events
Name | Description |
---|---|
OnMaterialChange | Event called each time the used material change. |