Search Issue Tracker
Fixed in 1.1-preview.2
Votes
0
Found in [Package]
1.0.0
Issue ID
1212052
Regression
No
[Input System] User can name InputAction asset and Action Map the same, creating compilation errors on generation
[Input System] User can name InputAction asset and Action Map the same, creating compilation errors on generation
When using the input System package, the user is allowed to name Action Maps the same as the enclosing the InputAction asset. When/if the user eneables code generation via the "Generate C# Class" toggle, this will break compilation citing:
error CS0542: 'InputAsset': member names cannot be the same as their enclosing type
Steps to reproduce:
- Download the attached project or create a new Unity project (19.3+), installing the new Input System from the Package Manager (in preview at this time)
- In the project explorer, right click somewhere and create a new InputAction asset.
- Double click the InputAction asset to edit it
- Add a new Action Map (there will be + icon in the "Action Maps" column)
- Give the Action Map the same name as the enclosing InputAction asset
- Press Save to save the changes and close the Input Action window
- In the project explorer, select the Input Action asset created and from the inspector, toggle the "Generate C#Class" option
- Observe compilation errors
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The "UnityWebRequest.result" of the "UnityWebRequestTexture.GetTexture" method changes when accessing "UnityWebRequest.downloadHandler" texture
- Slider rounding does not allow setting certain valid numbers as Values when Low and High Values not set to default
- UI Builder Canvas has too big resizing zone on the outside of the canvas
- GetCurrentAnimatorClipInfoCount() and GetNextAnimatorClipInfoCount() return 0 when animator is in transition
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
Resolution Note (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1214