# XYSpotlight.cs

## Fields & Properties

### float xRange

Maximum horizontal movement range for the spotlight.

### float yRange

Maximum vertical movement range for the spotlight.

### Transform spotlight

The spotlight object to control.

### float lightZ

Fixed Z-coordinate for the spotlight position.

### Light li

Reference to the `Light` component on the spotlight.

## Methods

### SetSliderPos(float x, float y)

Updates the spotlight's position based on normalized slider values.

* `float x`: Normalized X-axis value.
* `float y`: Normalized Y-axis value.

### SetLightIntensity(float intensity)

Updates the intensity of the spotlight.

* `float intensity`: The new intensity value.
