/**
         * <summary>Creates and returns a new MenuSlider that has the same values as itself.</summary>
         * <returns>A new MenuSlider with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf()
        {
            MenuSlider newElement = CreateInstance <MenuSlider>();

            newElement.Declare();
            newElement.CopySlider(this);
            return(newElement);
        }
示例#2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuSlider newElement = CreateInstance <MenuSlider>();

            newElement.Declare();
            newElement.CopySlider(this, ignoreUnityUI);
            return(newElement);
        }