docs.unity3d.com
Search Results for

    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
    Assembly: UnityEngine.UI.dll
    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
    bool
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)