docs.unity.cn
    Show / Hide Table of Contents

    Interface ILayoutIgnorer

    A RectTransform will be ignored by the layout system if it has a component which implements ILayoutIgnorer.

    Namespace: UnityEngine.UI
    Syntax
    public interface ILayoutIgnorer
    Remarks

    A components that implements ILayoutIgnorer can be used to make a parent layout group component not consider this RectTransform part of the group. The RectTransform can then be manually positioned despite being a child GameObject of a layout group.

    Properties

    ignoreLayout

    Should this RectTransform be ignored bvy the layout system?

    Declaration
    bool ignoreLayout { get; }
    Property Value
    Type Description
    Boolean
    Remarks

    Setting this property to true will make a parent layout group component not consider this RectTransform part of the group. The RectTransform can then be manually positioned despite being a child GameObject of a layout group.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023