Add a Vehicle Radio Component by pressing the "Add" button.
In the search box, you type "Radio" and press the "AC Vehicle Radio".
Press the "AC Vehicle Radio".
In the details tab, you can adjust the radio settings.
In the "Radio Sound List" option, by pressing the "+" button, you can add the name, image, and sound to the radio Sound list.
As shown in the image.
You can replace or modify the Radio Sound Attenuation as needed.
You can adjust the sound placement if necessary.
You can control the radio's behavior after the currently playing sound has finished.
Here, you can also add interactive sound for turning on, switching, and turning off the radio.
Using "Turn On" will activate the radio, and when you set the boolean "Interact Sound" to true, it will trigger the sound associated with "Turn On Radio" from the details tab.
Using "Turn Off" will turn off the radio, and when you set the boolean "Interact Sound" to true, it will trigger the sound associated with "Turn Off Radio" from the details tab.
When "Reset" is set to true, the elapsed time for the current sound is reset, and the sound stops. On radio startup, the timer resets, and a random sound plays. If "Reset" is false, the timer continues running in the background. If the sound finishes in the background, the radio behavior depends on "When Sound Finish" If set to "Next" it transitions to the next sound on restart. If set to "Reset" the current sound restarts. If set to "Stop" the radio halts, resets the timer, and on restart, a random sound plays.
Using "Next" will switch to the next sound in the Radio Sound List, and when you set the boolean "Interact Sound" to true, it will trigger the sound associated with "Switch Radio" from the details tab.
Using "Previous" will switch to the Previous sound in the Radio Sound List, and when you set the boolean "Interact Sound" to true, it will trigger the sound associated with "Switch Radio" from the details tab.
Using "Pause" will stop the audio playback.
Using "Resume" will resume the audio playback.
Using "Set 2D Sound" when you enable the "Sound 2D" boolean, it switches the sound to 2D mode, and disabling the boolean reverts the sound to "Sound at Location."
For instance, you can enable it when entering the car and disable it when exiting.
Using "Enable/Disable Radio" setting the "Disable Radio" boolean to true deactivates the radio, while setting it to false cancels the deactivation.Â
For instance, you can activate "Disable Radio" when the car malfunctions, and then deactivate it when you repair the car.
Using 'Show Radio UI' when the 'Show UI' boolean is enabled, it displays the radio UI, and disabling the boolean removes the radio UI. For example, you can enable it when entering the car and disable it when exiting.
Using "Is Radio On" you can check whether the radio is turned on or off.
Using "Is Radio Disabled" you can check whether the radio is deactivated or not.
Using 'Is the radio UI Showing' you can check whether the radio UI is showing.
Using the "Is Radio Paused" you can check whether the radio is temporarily paused or not.
Using "Get Sound Time (Float)" you can obtain the elapsed time of the currently playing sound.
Using "Get End Sound Time (Integer)" you can obtain the end time of the currently playing sound.