文档

Unity Engine

Unity Engine

ForceUpdate()

Called when the reference changes so subclasses can refresh any live listeners.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
protected virtual void ForceUpdate()

Remarks

The base implementation does nothing. Subclasses such as LocalizedString and LocalizedAsset<TObject> override this to re-resolve the value and push it to their change events. It runs whenever a property setter on the reference assigns a new value.