Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Documentation~/Block-Kill(Sphere).md
Caleb Sandford deQuincey 02c4b5ab66 Adding in new packages
2025-06-05 22:59:18 +01:00

31 lines
1.3 KiB
Markdown

# Kill (Sphere)
Menu Path : **Kill >** **Kill (Sphere)**
The Kill (Sphere) Block kills (sets the `alive` attribute to false) particles depending on where they are in comparison to a given [Sphere](Type-Sphere.md).
## Block settings
| **Setting** | **Type** | **Description** |
| ----------- | -------- | ------------------------------------------------------------ |
| **Mode** | Enum | The method Unity uses to determine whether to kill a particle. The options are:<br/>&#8226; **Solid**: Kills particles within the Sphere.<br/>&#8226; **Inverted**: Kills particles outside of the Sphere. |
## Block compatibility
This Block is compatible with the following Contexts:
- [Initialize](Context-Initialize.md)
- [Update](Context-Update.md)
- Any output Context
## Block properties
| **Input** | **Type** | **Description** |
| ---------- | ------------------------ | ------------------------------------------- |
| **Sphere** | [Sphere](Type-Sphere.md) | The sphere to compare particle position to. |
## Remark
- If you use this Block inside an output Context, particles temporarily disappear, but don't stay killed.
- Make sure to enable the **Reap Particles** option in update, otherwise killed particles don't disappear.