Skip to content

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

@ZhangHuan0407

Description

@ZhangHuan0407

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions