Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX: Allow Copy/Paste between windows (ISX-1823).#1844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
graham-huws wants to merge23 commits intodevelop
base:develop
Choose a base branch
Loading
fromISX-1823-cut-copy-between-windows

Conversation

@graham-huws
Copy link
Collaborator

@graham-huwsgraham-huws commentedFeb 15, 2024
edited
Loading

Description

Fix forISX-1823.

Changes made

This was previously not working because the Paste command would only apply to the relevant Action Maps/Actions List/Tree, so if neither of those were focused, nothing would happen. We now also listen for Paste at the top level of the element hierarchy and send paste commands from there.

Notes

Issues:
• Undoing adding an Action Map/Action leaves the list unselected. Pasting at that point fails because the state thinks there's still a valid item selected. Mentionedhere, and should be added as a separate bug.
• Currently won't work if the window is tabbed to - user has to click somewhere in the window. Think I'll need to ask UITK team about this.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change inChanged,Fixed,Added sections.
    • For API change contains an example snippet and/or migration example.
    • FogBugz ticket attached, example([case %number%](https://issuetracker.unity3d.com/issues/...)).
    • FogBugz is marked as "Resolved" withnext release version correctly set.
  • Tests added/changed, if applicable.
    • Functional testsArea_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

@graham-huwsgraham-huwsforce-pushed theISX-1823-cut-copy-between-windows branch from94d27e7 to8944d39CompareFebruary 15, 2024 00:46
@graham-huwsgraham-huwsforce-pushed theISX-1823-cut-copy-between-windows branch from8944d39 to4d21dbfCompareFebruary 15, 2024 11:41
@graham-huwsgraham-huws marked this pull request as ready for reviewFebruary 15, 2024 11:42
{
varpastePartOfComposite=IsPartOfComposite(json);
if(index>0)
if(index>0&&arrayProperty.arraySize>0&&index-1<arrayProperty.arraySize)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I am confused about an index that must be greater than zero and at least two elements from the end of the anway? Would recommend adding an inline comment if this is correct but some kind of special case.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This somewhat doubled up from merging develop - should be clearer now :)

@ekcoh
Copy link
Collaborator

As a side-note, when#1834 lands there will exist an interesting scenario for this functionality when the same asset is open simultaneously in two windows, both in Project Settings and in a free-floating Input Action Editor.

@stefanunitystefanunity requested review fromstefanunity and removed request forPauliusd01February 19, 2024 10:07
Copy link
Collaborator

@stefanunitystefanunity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Finished for now. Two bugs not yet fixed are:

  1. BUG: trying to paste an action into empty map throws error:
    --ArgumentException: '0' cannot be greater than -1.
  2. BUG: trying to paste a modifier into empty map throws errror
    --NullReferenceException: Object reference not set to an instance of an object

Once they are fixed it looks good.

graham-huws reacted with thumbs up emoji
@graham-huws
Copy link
CollaboratorAuthor

Finished for now. Two bugs not yet fixed are:

1. BUG: trying to paste an action into empty map throws error:   --ArgumentException: '0' cannot be greater than -1.2. BUG: trying to paste a  modifier into empty map throws errror   --NullReferenceException: Object reference not set to an instance of an object

Once they are fixed it looks good.

Thanks@stefanunity - I believe these should both be fixed now, can you confirm?

stefanunity reacted with thumbs up emoji

@Pauliusd01
Copy link
Collaborator

Pauliusd01 commentedFeb 22, 2024
edited
Loading

Unity_2024-02-22_14-11-34.mp4

Cutting and pasting into an empty asset somehow "resurrects" all of the previously deleted actions. (I do deselect ProjectWideActions to confirm the auto save but that does not seem to help)

@stefanunity
Copy link
Collaborator

Thanks@stefanunity - I believe these should both be fixed now, can you confirm?

Both are fixed now.

@ekcoh
Copy link
Collaborator

The bug called out@Pauliusd01 doesn't really make any sense to me but should be fixed. Where is this coming from if not the copy buffer?

Copy link
Collaborator

@Pauliusd01Pauliusd01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Updating status - waiting for fixes

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ekcohekcohekcoh left review comments

@ritamerklritamerklritamerkl left review comments

@Pauliusd01Pauliusd01Pauliusd01 requested changes

@stefanunitystefanunitystefanunity approved these changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@graham-huws@ekcoh@Pauliusd01@stefanunity@ritamerkl@lyndon-unity

[8]ページ先頭

©2009-2025 Movatter.jp