Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,8 @@ Animator Controller 可以使用以下参数:
- `SoundTagPlayChance`(可选):字典类型,键为音效标签(不区分大小写),值为播放概率(0-100)
- 概率值会被自动转换为 0-1 之间的浮点数(除以 100)
- 当触发该标签的音效时,会根据配置的概率决定是否播放
- 如果未配置或概率为 0,则始终播放(默认行为)
- 如果未配置,则始终播放(默认行为)
- 如果概率为 0,则始终不播放
- 如果概率小于 100,则有一定几率不播放该音效

### 注意事项
Expand Down
3 changes: 2 additions & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down