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.