Skip to content

Fix: Button attribute now works with multi-object selection#409

Open
Arpit-Mahala1 wants to merge 1 commit into
dbrizov:masterfrom
Arpit-Mahala1:fix-button-multi-select
Open

Fix: Button attribute now works with multi-object selection#409
Arpit-Mahala1 wants to merge 1 commit into
dbrizov:masterfrom
Arpit-Mahala1:fix-button-multi-select

Conversation

@Arpit-Mahala1
Copy link
Copy Markdown

  • Modified NaughtyEditorGUI.Button() to iterate through all selected objects
  • Button now invokes the method on all selected GameObjects instead of just the last one
  • Maintains backward compatibility with single object selection
  • Properly marks all affected objects and scenes as dirty

Fixes #407 (or fixes #362 if issue 407 doesn't exist)

- Modified NaughtyEditorGUI.Button() to iterate through all selected objects
   - Button now invokes the method on all selected GameObjects instead of just the last one
   - Maintains backward compatibility with single object selection
   - Properly marks all affected objects and scenes as dirty

   Fixes dbrizov#407 (or fixes dbrizov#362 if issue 407 doesn't exist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button attribute doesnt work with multi selection [Request] Clicking a button on multiple objects only clicks one

1 participant