bool Reflections { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Reflections property of the BaseSoundComponent class determines whether sound reflections are enabled for the audio component. When set to true, the sound will simulate reflections, which can enhance the realism of the audio by mimicking how sound waves bounce off surfaces in the environment.

Usage

To use the Reflections property, you can set it directly on an instance of a class that inherits from BaseSoundComponent. This property is part of the ReflectionOverride group, which means it can be toggled on or off based on the ReflectionOverride property.

Example usage:

var soundComponent = new MySoundComponent();
soundComponent.ReflectionOverride = true; // Enable reflection override
soundComponent.Reflections = true; // Enable reflections

Example

// Example of enabling reflections on a sound component
var soundComponent = new MySoundComponent();
soundComponent.ReflectionOverride = true; // Enable reflection override
dsoundComponent.Reflections = true; // Enable reflections