private void Gizmo(Vector3 position) | Draws a small cube at a spawn position. |
private void Grid(Action<Vector3> spawn) | Calls the spawn action on a gridSize by gridSize grid centred here. |
private void Handle(Action<Vector3> spawn) | Runs the pattern chosen by mode with the given action. |
private void OnDrawGizmosSelected() | Previews the spawn pattern with yellow cubes. Random modes show new points every redraw. |
private void ScatterEvenCircle(Action<Vector3> spawn) | Random points in a circle of radius 1 around this object; radius isn't used. |
private void ScatterRect(Action<Vector3> spawn) | Random points in a square radius wide centred here. |
private void ScatterWeightedCircle(Action<Vector3> spawn) | Random points from a unit sphere flattened onto the ground, so more fall near the centre. |
private void Spawn(Vector3 position) | Spawns the prefab at a position in this entity's chunk. |