ドキュメント

Unity Engine

Unity Engine

Clear()

Resets the hierarchy to an empty state, removing all nodes and the screen reader focus.
読み終わるまでの所要時間 1 分最終更新 23日前

Definition

public void Clear()

Remarks

Warning: When this hierarchy is the AssistiveSupport.activeHierarchy, this method has a non-trivial cost on the following platforms:
  • iOS: Clearing the hierarchy has a high cost that scales with its size. Avoid calling this method frequently in performance-sensitive code.
  • macOS: Clearing the hierarchy has a moderate cost that scales with its size. Calling this method frequently can affect performance.
Clearing an inactive hierarchy has no native cost.