中文
Appearance
AudioSource.minDistance
AudioSource
音频源的最小传播距离。
最小距离是指与音频源相距多远时,音频听起来不再变大。 当听众处于最小距离以内时,声音将听起来最大。如果听众与音频源的距离超过最小距离,声音将开始衰减。
number
let obj = new GameObject(); let source = obj.AddComponent<AudioSource>(AudioSource); source.minDistance;