Click or drag to resize

MatchSizeLayout Class

Give a UI element the size of this rectTransform whenever it's resized.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.UI.LayoutMatchSizeLayout

Namespace:  Kit.UI.Layout
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class MatchSizeLayout : MonoBehaviour
Request Example View Source

The MatchSizeLayout type exposes the following members.

Fields
  NameDescription
Public fieldElement
Transform to resize.
Public fieldHeight
Whether to resize height.
Public fieldPadding
Padding to apply before resizing.
Public fieldWidth
Whether to resize width.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also