TweakScale.ScaleType.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            var result = "ScaleType {\n";
            result += "	isFreeScale = " + IsFreeScale + "\n";
            result += "	scaleFactors = " + ScaleFactors + "\n";
            result += " scaleNodes = " + ScaleNodes + "\n";
            result += "	minValue = " + MinValue + "\n";
            result += "	maxValue = " + MaxValue + "\n";
            return result + "}";
        }

Usage Example

Esempio n. 1
0
        /// <summary>
        /// Checks if the config for this TweakScale instance is valid. If not, logs it and returns false.
        /// </summary>
        /// <returns>True if the config is invalid, false otherwise.</returns>
        private bool CheckForInvalidCfg()
        {
            if (ScaleFactors.Length != 0)
            {
                return(false);
            }
            if (_invalidCfg)
            {
                return(true);
            }

            _invalidCfg = true;
            Tools.LogWf("{0}({1}) has no valid scale factors. This is probably caused by an invalid TweakScale configuration for the part.", part.name, part.partInfo.title);
            Debug.Log("[TweakScale]" + this.ToString());
            Debug.Log("[TweakScale]" + ScaleType.ToString());
            return(true);
        }
All Usage Examples Of TweakScale.ScaleType::ToString