文档

Unity Engine

Unity Engine

sendChildDimensionsChange

Whether the RectTransform notifies components when a child RectTransform changes dimensions.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool sendChildDimensionsChange { get; set; }

Remarks

If true, this RectTransform calls MonoBehaviour.OnChildRectTransformDimensionsChange() on all components attached to the same GameObject when any of its child RectTransforms change dimensions.

Examples

{code Documentation/ManualDocs/com.unity.documentation-examples/CoreProgramming/Scripts/Transform/OnChildRectTransformDimensionsChangeExample.cs}