Effects & Sound
This asset allows you to easily configure the effects (particles) and sounds that occur upon destruction directly from the Inspector.
Particle Settings
By assigning a particle system prefab to the Dust Particle Prefab in the Effect Settings, you can spawn the specified effect upon destruction.
Note on Updates
The current particle display specifications (such as automatic calculation of scale and color) are subject to change or expansion in future updates.
Automatic Adjustment in the Current Implementation
In the current implementation, the following adjustments are automatically applied to the assigned particles:
- Auto-Scaling: The size of the effect is automatically adjusted based on the object's bounding box (object size) (applied within the range of a minimum scale of 1.0 to a maximum scale of 4.0).
- Color Gradient: A random hue (with adjusted saturation and lightness) is automatically applied to the generated particles.
Sound Settings
You can configure the destruction sound within the Effect Settings. An AudioSource component is automatically added to the target object at runtime, and the configured audio is played once.
- Destruction Audio Clip: Specifies the audio file (
AudioClip) to play upon destruction. - Destruction Audio Volume: Adjusts the playback volume within the range of
0.0to1.0.
Included Sample Sounds
This asset includes the following seven sample audio clips for immediate testing. Please configure them according to your object's material and size as you like.
impactWood_light_001.wavfootstep_carpet_001.wavfootstep_snow_000.wavimpactBell_heavy_001.wavimpactMetal_medium_001.wavimpactMining_004.wavimpactPunch_heavy_003.wav
