Search Issue Tracker
Fixed in 1.0.0-preview.2
Votes
0
Found in [Package]
1.0-preview
Issue ID
1189861
Regression
No
[Input System] Compile errors when using C# keywords as action names
When using "Generate C# Class" on an .inputaction asset, giving an action a name that is also a C# keyword will lead to a compile error.
Repro:
1. Create .inputactions asset
2. Add an action map and an action called "return"
3. Save the asset
4. Enable "Generate C# Class" in the importer settings and hit Apply
5. Observe compile error after Unity has finished importing
The problem is that we properly escape uses of action and action map names on properties (e.g. "@return") but do not do so in some other pieces of the generated code.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment