文档

Unity Engine

Unity Engine

visibilityChanged

The event raised whenever the visibility of a GameObject changes.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Event
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static event Action visibilityChanged

Remarks

For performance reasons, this event is not raised for every visibility operation. For example, if you select multiple GameObjects and hide them all at once, the event will be raised only once.