unreal.SoundConcurrencySettings¶
- class unreal.SoundConcurrencySettings(max_count: int = 0, limit_to_owner: bool = False, volume_scale_can_release: bool = False, enable_max_count_platform_scaling: bool = False, resolution_rule: MaxConcurrentResolutionRule = Ellipsis, retrigger_time: float = 0.0, platform_max_count: PerPlatformInt = Ellipsis, volume_scale_mode: ConcurrencyVolumeScaleMode = Ellipsis, volume_scale_attack_time: float = 0.0, volume_scale_release_time: float = 0.0, voice_steal_release_time: float = 0.0)¶
Bases:
StructBaseSound Concurrency Settings
C++ Source:
Module: Engine
File: SoundConcurrency.h
Editor Properties: (see get_editor_property/set_editor_property)
enable_max_count_platform_scaling(bool): [Read-Write] If true, MaxCount supports platform scaling, but cannot be dynamically changed at runtime (ex. from Blueprint or Gameplay Code). If false, MaxCount is dynamically assignable at runtime, but is not platform scalable.limit_to_owner(bool): [Read-Write] Whether or not to limit the concurrency to per sound owner (i.e. the actor that plays the sound). If the sound doesn’t have an owner, it falls back to global concurrency.max_count(int32): [Read-Write] The max number of allowable concurrent active voices for voices playing in this concurrency group. Can be mutated at runtime via Blueprint or code (see “Enable MaxCount Platform Scaling” for disablement of runtime manipulation, which in turn allows for platform scaling of the given value).platform_max_count(PerPlatformInt): [Read-Write] The max number of allowable concurrent active voices for voices playing in this concurrency group. Scalable per platform or platform group. Cannot be mutated at runtime (Disable “Enable MaxCount Platform Scaling” for enablement of MaxCount runtime manipulation).resolution_rule(MaxConcurrentResolutionRule): [Read-Write] Which concurrency resolution policy to use if max voice count is reached.retrigger_time(float): [Read-Write] Amount of time to wait (in seconds) between different sounds which play with this concurrency. Sounds rejected from this will ignore virtualization settings.voice_steal_release_time(float): [Read-Write] Time taken to fade out if voice is evicted or culled due to another voice in the group starting.volume_scale(float): [Read-Write] Ducking factor to apply per older voice instance (generation), which compounds based on scaling mode and (optionally) revives them as they stop according to the provided attack/release times.Note: This is not applied until after StopQuietest rules are evaluated, in order to avoid thrashing sounds.
AppliedVolumeScale = Math.Pow(DuckingScale, VoiceGeneration)
volume_scale_attack_time(float): [Read-Write] Time taken to apply duck using volume scalar.volume_scale_can_release(bool): [Read-Write] Whether or not volume scaling can recover volume ducking behavior when concurrency group sounds stop (default scale mode only).volume_scale_mode(ConcurrencyVolumeScaleMode): [Read-Write] Volume Scale mode designating how to scale voice volume based on number of member sounds active in group.volume_scale_release_time(float): [Read-Write] Time taken to recover volume scalar duck (default scale mode only).
- property enable_max_count_platform_scaling: bool¶
[Read-Only] If true, MaxCount supports platform scaling, but cannot be dynamically changed at runtime (ex. from Blueprint or Gameplay Code). If false, MaxCount is dynamically assignable at runtime, but is not platform scalable.
- Type:
(bool)
- property limit_to_owner: bool¶
[Read-Write] Whether or not to limit the concurrency to per sound owner (i.e. the actor that plays the sound). If the sound doesn’t have an owner, it falls back to global concurrency.
- Type:
(bool)
- property max_count: int¶
[Read-Write] The max number of allowable concurrent active voices for voices playing in this concurrency group. Can be mutated at runtime via Blueprint or code (see “Enable MaxCount Platform Scaling” for disablement of runtime manipulation, which in turn allows for platform scaling of the given value).
- Type:
(int32)
- property platform_max_count: PerPlatformInt¶
[Read-Only] The max number of allowable concurrent active voices for voices playing in this concurrency group. Scalable per platform or platform group. Cannot be mutated at runtime (Disable “Enable MaxCount Platform Scaling” for enablement of MaxCount runtime manipulation).
- Type:
- property resolution_rule: MaxConcurrentResolutionRule¶
[Read-Write] Which concurrency resolution policy to use if max voice count is reached.
- Type:
- property retrigger_time: float¶
[Read-Write] Amount of time to wait (in seconds) between different sounds which play with this concurrency. Sounds rejected from this will ignore virtualization settings.
- Type:
(float)
- property voice_steal_release_time: float¶
[Read-Write] Time taken to fade out if voice is evicted or culled due to another voice in the group starting.
- Type:
(float)
- property volume_scale_attack_time: float¶
[Read-Write] Time taken to apply duck using volume scalar.
- Type:
(float)
- property volume_scale_can_release: bool¶
[Read-Write] Whether or not volume scaling can recover volume ducking behavior when concurrency group sounds stop (default scale mode only).
- Type:
(bool)
- property volume_scale_mode: ConcurrencyVolumeScaleMode¶
[Read-Write] Volume Scale mode designating how to scale voice volume based on number of member sounds active in group.
- Type: