Class DecalProjector
Decal Projector component.
상속된 멤버
네임스페이스: UnityEngine.Rendering.HighDefinition
어셈블리: solution.dll
구문
[HelpURL("https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.10/manual/Decal-Projector.html")]
[ExecuteAlways]
[AddComponentMenu("Rendering/Decal Projector")]
public class DecalProjector : MonoBehaviour, IVersionable<DecalProjector.Version>
프로퍼티
| 이름 | 설명 |
|---|---|
| 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. |
| 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. |
메서드
| 이름 | 설명 |
|---|---|
| IsValid() | Check if the material is set and if it is different than the default one |
이벤트
| 이름 | 설명 |
|---|---|
| OnMaterialChange | Event called each time the used material change. |