// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using FlaxEngine.GUI; namespace FlaxEditor.CustomEditors.Elements { /// /// The custom layout element. /// /// public class CustomElementsContainer : LayoutElementsContainer where T : ContainerControl, new() { /// /// The custom control. /// public readonly T CustomControl = new T(); /// public override ContainerControl ContainerControl => CustomControl; } /// /// The custom layout element. /// /// public class CustomElement : LayoutElement where T : Control, new() { /// /// The custom control. /// public readonly T CustomControl = new T(); /// public override Control Control => CustomControl; } }