Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply import rules to moved assets. #20

Closed

Conversation

Haruma-K
Copy link

This allows the import rules to be applied to moved assets as well.
Also, delete the entry if there are no rules to apply as a result of the move.

@favoyang
Copy link
Owner

Hey @Haruma-K,

Thanks for bringing this into my attention. I'm surprised that the current implementation can not handle moved assets. I will do a few tests, but may take some time.

@Haruma-K
Copy link
Author

Thanks for the reply, @favoyang .

Oh, so the behavior was different from what you thought.
It doesn't matter if it takes a while. please let me know if there is anything I can do.

@favoyang
Copy link
Owner

favoyang commented Apr 25, 2020

I have some tests and you're right about the behaviors.

Action Rule applied to assets
Create asset Yes
Delete asset It works, but handled by Addresasbles system itself
Move asset to an unmanaged path (move-out) No
Move asset to a managed path (move-in) No

I will read your PR carefully and get back to you.

Editor/AddressableImporter.cs Outdated Show resolved Hide resolved
Editor/AddressableImporter.cs Outdated Show resolved Hide resolved
Editor/AddressableImporter.cs Show resolved Hide resolved
Editor/AddressableImporter.cs Outdated Show resolved Hide resolved
@favoyang favoyang closed this in a902a21 Apr 26, 2020
github-actions bot pushed a commit that referenced this pull request Apr 26, 2020
# [0.6.0](v0.5.4...v0.6.0) (2020-04-26)

### Features

* handle moved assets (close: [#20](#20)) ([a902a21](a902a21))
@github-actions
Copy link

🎉 This issue has been resolved in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@favoyang
Copy link
Owner

@Haruma-K Thank you! This PR is awesome. I've added your name to the README as a contributor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants