Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SerializedObject.SetIsDifferentCacheDirty

SetIsDifferentCacheDirty(): void;
void SetIsDifferentCacheDirty();
def SetIsDifferentCacheDirty() as void

Description

Update hasMultipleDifferentValues cache on the next /Update()/ call.

Normally, you should not need to call this, as the SerializedProperty setters take care of this. However, when you change an object bypassing the SerializedProperty class, you will need to manually call this to force the difference cache to be updated.