Prefab Point Area Generator Component
This component belongs to the following package:
- com.yahaha.props.traps
Description
This component randomly generates prefabs around designated points within a specified radius.
Properties
| Properties | Description |
|---|---|
| Prefab | The prefab that will be randomly instantiated around the designated points. |
| Spawn On Game Start | Specifies whether the prefabs should be instantiated at game start. Enabled by default. |
| Minimum Spawn Distance | The minimum distance required between generated prefab instances. If set to a value greater than 0, the maximum number of instances will be limited by the available space within the specified range. Default value: 0. |
| Spawn Point Area Settings | Defines the designated points, the range of instances, and the radius for prefab instantiation. |
| Prefab Spawn Point | Defines the designated locations where the prefabs will be instantiated. You can select multiple spawn points to distribute the prefabs across these locations. |
| Minimum Instances | The minimum number of prefabs to instantiate. If this value is negative, it defaults to the Maximum value. |
| Maximum Instances | The maximum number of prefabs that can be instantiated at the designated spawn points. |
| Spawn Radius | The horizontal radius around the target point within which prefabs will be randomly instantiated. If set to 0, prefabs will be generated at the exact target point. |