public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuInput newElement = CreateInstance <MenuInput>();

            newElement.Declare();
            newElement.CopyInput(this, ignoreUnityUI);
            return(newElement);
        }
Example #2
0
        /**
         * <summary>Creates and returns a new MenuInput that has the same values as itself.</summary>
         * <returns>A new MenuInput with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf()
        {
            MenuInput newElement = CreateInstance <MenuInput>();

            newElement.Declare();
            newElement.CopyInput(this);
            return(newElement);
        }