Skip to content

Weather that fades in and out

Updated

Rain and wind ambiences with an Audio Fade each: a Behavior script only enables and disables the two Audio entities, and the fades cross over two seconds.

With your sound on, press Rain: the wind fades out as the rain fades in over two seconds. Press Clear to swap back. The rain is a short loop generated for this example. Drag outside the panel to orbit the camera.

Weather that fades in and out

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

WeatherFade.xrproj