Documentation

Unity Engine

Download Unity

Unity Engine

SetDirty()

Requests an update of the hierarchy and a refresh of all its views, even if no changes are pending.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public bool SetDirty()

Returns

Type

Description

bool
true
if the update was requested,
false
otherwise.

Remarks

This doesn't append a command to the list, so it leaves HierarchyCommandList.IsEmpty unchanged. Use Hierarchy.UpdateNeeded to determine whether an update is pending.