From 5c5d25cc416e5e6433edf0bd9abc4e518f244d94 Mon Sep 17 00:00:00 2001 From: OLC Date: Sat, 22 Nov 2025 09:08:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E6=A6=82=E7=8E=870=E7=9A=84=E8=AF=B4=E6=98=8E=EF=BC=8C?= =?UTF-8?q?=E6=A6=82=E7=8E=87=E4=B8=BA0=E6=97=B6=E5=A7=8B=E7=BB=88?= =?UTF-8?q?=E4=B8=8D=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- README_EN.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6330d2b..24b71b1 100644 --- a/README.md +++ b/README.md @@ -775,7 +775,8 @@ Animator Controller 可以使用以下参数: - `SoundTagPlayChance`(可选):字典类型,键为音效标签(不区分大小写),值为播放概率(0-100) - 概率值会被自动转换为 0-1 之间的浮点数(除以 100) - 当触发该标签的音效时,会根据配置的概率决定是否播放 - - 如果未配置或概率为 0,则始终播放(默认行为) + - 如果未配置,则始终播放(默认行为) + - 如果概率为 0,则始终不播放 - 如果概率小于 100,则有一定几率不播放该音效 ### 注意事项 diff --git a/README_EN.md b/README_EN.md index 2d63bdc..c39fcf2 100644 --- a/README_EN.md +++ b/README_EN.md @@ -775,7 +775,8 @@ In `ModelInfo` within `bundleinfo.json`, you can configure playback probability - `SoundTagPlayChance` (optional): Dictionary type, where keys are sound tags (case-insensitive) and values are playback probabilities (0-100) - Probability values are automatically converted to floats between 0-1 (divided by 100) - When a sound with this tag is triggered, whether it plays is determined by the configured probability - - If not configured or probability is 0, always plays (default behavior) + - If not configured, always plays (default behavior) + - If probability is 0, never plays - If probability is less than 100, there's a chance the sound won't play ### Notes