hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
2.01k stars 176 forks source link

Make Instantiate() revert dirty state of prefab #720

Closed yellowisher closed 2 weeks ago

yellowisher commented 2 weeks ago

This fixes https://github.com/hadashiA/VContainer/issues/662

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vcontainer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 4:27pm
hadashiA commented 2 weeks ago

Thanks! However, I would like to see the minimum version of Unity that has this EditorUtility API.

yellowisher commented 2 weeks ago

Oh I missed it. Thanks as well. It seems EditorUtility.ClearDirty() is added at 2020.1.0f1 EditorUtility.IsDirty() is added at 2019.1.0f2

Wrapping with UNITY_2020_1_OR_NEWER would be enough? (sorry for 2019- users)

hadashiA commented 2 weeks ago

Ok. Thanks for the update!