Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UpdateIfRequiredOrScript()

Update serialized object's representation, only if the object has been modified since the last call to Update or if it is a script.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool UpdateIfRequiredOrScript()

Returns

Type

Description

bool

Remarks

In which case it is not safe to assume that SetDirty has been called. Return true if an Update was done.