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

UnityArmatureComponent 调用 EditorUtility.SetDirty 过于频繁 #87

Open
ZhangHuan0407 opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@ZhangHuan0407
Copy link

UnityArmatureComponent 存在大量设脏
在编辑器下,可以考虑添加 CalculatePropertyHashCode 将所有可能修改的内容求哈希

int hashCode = CalculatePropertyHashCode();
// update property...
if (hashCode  != CalculatePropertyHashCode())
  EditorUtility.SetDirty(this);

打开一个复杂的带有龙骨的场景 + 自动保存 = 卡卡卡

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

1 participant