// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) VRMADA, All rights reserved. // // -------------------------------------------------------------------------------------------------------------------- using UltimateXR.Core.Components; using UnityEngine; namespace UltimateXR.Mechanics.Weapons { /// /// Component that, added to a GameObject, will allows to override the decal generated by a projectile impact. /// When a projectile impact coming from an hits anything, an /// will be looked for traversing upwards in the hierarchy starting from the /// collider. /// If no was found, the decal specified in the /// component will be used. /// public class UxrOverrideImpactDecal : UxrComponent { #region Inspector Properties/Serialized Fields [SerializeField] private UxrImpactDecal _decalToUse; #endregion #region Public Types & Data /// /// Gets the decal to override with when the object was hit. /// public UxrImpactDecal DecalToUse => _decalToUse; #endregion } }