Show / Hide Table of Contents

Class SizeMatcher

Helper component to match the RectTransfrom's size to the reference RectTransform

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
UnityEngine.EventSystems.UIBehaviour
SizeMatcher
Namespace: BennyKok.RuntimeDebug.Components.UI
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[ExecuteAlways]
[AddComponentMenu("")]
public class SizeMatcher : UIBehaviour, ILayoutController

Fields

matchPositionRotation

Declaration
public bool matchPositionRotation
Field Value
Type Description
System.Boolean

reference

Declaration
public RectTransform reference
Field Value
Type Description
UnityEngine.RectTransform

target

Declaration
public RectTransform target
Field Value
Type Description
UnityEngine.RectTransform

Methods

OnDisable()

Declaration
protected override void OnDisable()
Overrides
UnityEngine.EventSystems.UIBehaviour.OnDisable()

OnEnable()

Declaration
protected override void OnEnable()
Overrides
UnityEngine.EventSystems.UIBehaviour.OnEnable()

OnRectTransformDimensionsChange()

Declaration
protected override void OnRectTransformDimensionsChange()
Overrides
UnityEngine.EventSystems.UIBehaviour.OnRectTransformDimensionsChange()

SetDirty()

Declaration
protected void SetDirty()
In This Article
👆 RuntimeDebugAction by ❤️ BennyKok