"Push-to-talk silently dead — Voice action missing from Input.config"
▸ SYMPTOM
You've wired up Sandbox.Voice for proximity push-to-talk, but pressing the PTT key does absolutely nothing. No errors in the console, no warnings — the key is simply dead. Voice proximity chat works in other projects but silently fails in yours.
▸ CAUSE
Sandbox.Voice defaults PushToTalkInput to "voice", expecting a matching "Voice" InputAction in ProjectSettings/Input.config. Some projects include this action out of the box; many don't. When the action is missing, Input.Down("Voice") never fires — there's no runtime error because a missing input action just returns false.
▸ FIX
Add the action to ProjectSettings/Input.config:
{
"Name": "Voice",
"GroupName": "Actions",
"KeyboardCode": "v",
"GamepadCode": "None"
}Then explicitly set the input name on the component as a belt-and-suspenders guard:
voice.PushToTalkInput = "Voice";Important: a newly added Input.config action requires an editor restart (or a fresh Play session) before Input.Down can see it. Don't assume the action is broken if it doesn't work immediately after editing the config.
▸ WHY IT WORKS
This is a completely silent failure — no error, no warning, just a dead key. Always grep Input.config for the action name before assuming a voice feature is wired correctly. Treat the default "voice" binding as "usually present, always verify."
- Published