mUIContentSizeFitter

Summary

Component for fitting content size

Relation

UnityEngine.UI.ContentSizeFitter
mUniSm.Core.IMonoCacheBehaviour

Variable

focusToAddContent Focus on added content
reservedArea The reserved area
padding The padding

Property

cachedGameObject Reference cache of GameObject
cachedTransform Reference cache of Transform
cachedRectTransform Reference cache of RectTransform
active True if the game object is active It is possible to change the state of the game object by setting bool
addSizeContents Gets or sets the content size to add.
addSizeFromChildContent Gets or sets a value indicating whether this.instance add size from child content.

Method

Validate( ) Callback method called when editing values in Unity Editor
SetLayoutHorizontal( ) Method called by the layout system.
SetLayoutVertical( ) Method called by the layout system.
OnCanvasHierarchyChanged( ) Called when the state of the parent Canvas is changed.

Reference