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

'AssetDatabase' does not contain a definition for 'SaveAssetIfDirty' #338

Open
Phoenixrafael opened this issue Apr 3, 2022 · 8 comments

Comments

@Phoenixrafael
Copy link

I am using Unity version 2020.3.15f2, and I installed 2d-extras using git URL.

Following error occurred after adding the package :
Library\PackageCache\com.unity.2d.tilemap.extras@d8f6f31800\Editor\Tiles\RuleOverrideTile\RuleOverrideTileEditor.cs(355,31): error CS0117: 'AssetDatabase' does not contain a definition for 'SaveAssetIfDirty'

(I installed branch 2020.3 by using link https://github.com/Unity-Technologies/2d-extras.git#2020.3)

@ChuanXin-Unity
Copy link
Collaborator

Hi, sorry about this! It looks like this was added in 2020.3.16. We will sort this out so that this will work in prior versions too.

@ChuanXin-Unity
Copy link
Collaborator

Hi, this has been updated to use the original AssetDatabase.SaveAssets, so that it will work with all versions of 2020.3!

@Mita-kgwh
Copy link

Hi, I use version 2021.1 and this happened to me too. Can you check that for me, thank you <3

@ChuanXin-Unity
Copy link
Collaborator

@Mita-kgwh Hi, could you share which version of the 2D Tilemap Extras package you are using and how you have added it to your project (eg. Unity Package Manager, Github, ...)? Thanks!

@Mita-kgwh
Copy link

Mita-kgwh commented May 9, 2022

@Mita-kgwh Hi, could you share which version of the 2D Tilemap Extras package you are using and how you have added it to your project (eg. Unity Package Manager, Github, ...)? Thanks!

Hii, I downloaded the package from branch package_2021.1 and place it in my Packages folder, and then i add "com.unity.2d.tilemap.extras": "https://github.com/Unity-Technologies/2d-extras.git#package_2021.1" to my Packages/manifest.json. But i see you fixed the package 2020.3 so i'm using it now.

@ChuanXin-Unity
Copy link
Collaborator

I added this changeset to help with this on 2021.1:
b41b6d2

Hope that helps!

@Mita-kgwh
Copy link

I added this changeset to help with this on 2021.1: b41b6d2

Hope that helps!

Hi, That fixed my SaveAssetIfDirty error. Thank you very much <3

@ChuanXin-Unity
Copy link
Collaborator

Thanks for confirming this! I will merge this into the main package_2021.1 branch.

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

No branches or pull requests

3 participants