コード例 #1
0
        public static GUIContent[] GetGUIContents(LabelIcon labelIcon)
        {
            var methodInfo = GetMethodInfo_IconContent();

            object[] parameters = new object[] { "sv_label_" + labelIcon.ToString() };

            int length = (int)LabelIcon.Length;

            GUIContent[] contents = new GUIContent[length];

            for (int i = 0; i < length; i++)
            {
                contents[i] = methodInfo.Invoke(null, parameters) as GUIContent;
            }

            return(contents);
        }
コード例 #2
0
        public static GUIContent GetGUIContent(LabelIcon labelIcon)
        {
            var methodInfo = GetMethodInfo_IconContent();

            return(methodInfo.Invoke(null, new object[] { "sv_label_" + labelIcon.ToString() }) as GUIContent);
        }