Пример #1
0
        /// <summary>
        /// Search the custom styles stored in the provided skin for a style
        /// that matches the provided name
        /// </summary>
        /// <param name="thisSkin">The skin to search</param>
        /// <param name="customName">The name of the style to find</param>
        /// <param name="customStyle">The found style, or null if not found</param>
        /// <returns>True if found, false if not</returns>
        public static bool TryGetCustomStyle(this GUISkin thisSkin, string customName, out GUIStyle customStyle)
        {
            customStyle = thisSkin.GetCustomStyle(customName);

            return(customStyle != null);
        }