/** * <summary>Creates and returns a new MenuButton that has the same values as itself.</summary> * <returns>A new MenuButton with the same values as itself</returns> */ public override MenuElement DuplicateSelf() { MenuButton newElement = CreateInstance <MenuButton>(); newElement.Declare(); newElement.CopyButton(this); return(newElement); }
public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI) { MenuButton newElement = CreateInstance <MenuButton>(); newElement.Declare(); newElement.CopyButton(this, ignoreUnityUI); return(newElement); }