ドキュメント

Unity Engine

Unity Engine

OnChildRectTransformDimensionsChange()

Called when a child RectTransform's dimensions change.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public void OnChildRectTransformDimensionsChange()

Remarks

Sent to the parent RectTransform when the dimensions of an immediate child RectTransform change. Use it in UI hierarchies where layouts need to respond dynamically to size changes. Important: This message is only sent if the parent RectTransform.sendChildDimensionsChange property is set to
true
. If this property is
false
, the parent will not receive the callback even when a child changes size.

Examples

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