Class VisualContainer
Implements
Inherited Members
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public class VisualContainer : VisualElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle
Methods
| Improve this Doc View SourceAddChild(VisualElement)
Declaration
[Obsolete("VisualContainer.AddChild will be removed. Use VisualElement.Add or VisualElement.shadow.Add instead", false)]
public void AddChild(VisualElement child)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | child |
ClearChildren()
Declaration
[Obsolete("VisualContainer.ClearChildren will be removed. Use VisualElement.Clear or VisualElement.shadow.Clear instead", false)]
public void ClearChildren()
GetChildAt(Int32)
Declaration
[Obsolete("VisualContainer.GetChildAt will be removed. Use VisualElement.ElementAt or VisualElement.shadow.ElementAt instead", false)]
public VisualElement GetChildAt(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
VisualElement |
InsertChild(Int32, VisualElement)
Declaration
[Obsolete("VisualContainer.InsertChild will be removed. Use VisualElement.Insert or VisualElement.shadow.Insert instead", false)]
public void InsertChild(int index, VisualElement child)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | |
VisualElement | child |
RemoveChild(VisualElement)
Declaration
[Obsolete("VisualContainer.RemoveChild will be removed. Use VisualElement.Remove or VisualElement.shadow.Remove instead", false)]
public void RemoveChild(VisualElement child)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | child |
RemoveChildAt(Int32)
Declaration
[Obsolete("VisualContainer.RemoveChildAt will be removed. Use VisualElement.RemoveAt or VisualElement.shadow.RemoveAt instead", false)]
public void RemoveChildAt(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |