mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
2.08k stars 269 forks source link

Project recreates scriptable object when the project is pulled from git #200

Closed oktayturkdagli closed 1 month ago

oktayturkdagli commented 1 month ago

Describe the bug When a new project is created and sent to git and then the project is pulled by someone else, the asset in the project settings folder appears as a white file in Unity and Unity does not recognize this file, the soft mask creates a new asset. So we have two assets but only one of them works.

To Reproduce I have not tried to reproduce it, I can provide more information about it later. But I think it should be like this: Both sides have pulled the project once. Then one of the users changes the motion sensitivity to High on the asset and pushes it. The person on the other side pulls and sees that their asset is damaged and a new asset is created.

Environment: Version: 2.3.7 Platform: Mac Unity version: Unity 2022.3.45 Build options: [ IL2CPP, .Net 4.x, URP, Android(API 33)]

mob-sakai commented 1 month ago

Thank you for your reporting! Indeed, an exception occurred immediately after the package installation.

mob-sakai commented 1 month ago

@oktayturkdagli Please try RC version.

"com.coffee.softmask-for-ugui": "https://github.com/mob-sakai/SoftMaskForUGUI.git?path=Packages/src#develop",
oktayturkdagli commented 1 month ago

Great! I'll try on Monday. 🙏

oktayturkdagli commented 1 month ago

There doesn't seem to be a problem here, but I haven't tested it in detail. I can do detailed tests after the release.

github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 2.3.8 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

Mepkatatsu commented 1 month ago

I experienced the same issue in version 2.3.8. I'm not sure of the exact cause(I had moved the package to a different path when I first import it.), it seemed that every time I pulled from Git or restarted the project, the UISoftMask.asset was always newly generated, but it wasn't properly registered to the Preloaded Assets. So I manually registered it to Preloaded Assets, and the issue was resolved.