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 |
---|---|
affects |
Change the transparency. It is only compatible when using HDRP/Decal shader. |
decal |
The layer of the decal. |
draw |
Distance from camera at which the Decal is not rendered anymore. |
end |
Angle between decal backward orientation and vertex normal of receiving surface at which the Decal end to fade off. |
fade |
Controls the transparency of the decal. |
fade |
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. |
scale |
The scaling mode to apply to decals that use this Decal Projector. |
size | The size of the projection volume.
See also Resize |
start |
Angle between decal backward orientation and vertex normal of receiving surface at which the Decal start to fade off. |
uv |
Offset of the UV of the projected texture. |
uv |
Tilling of the UV of the projected texture. |
Methods
Name | Description |
---|---|
Is |
Check if the material is set and if it is different than the default one |
Resize |
Update the pivot to resize centered on the pivot position. |
Events
Name | Description |
---|---|
On |
Event called each time the used material change. |