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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1214