コード例 #1
0
        private static Texture2D GetTexture(BaseMightyMember mightyMember, object target, ScriptIconAttribute attribute)
        {
            var path = attribute.IconPath;

            if (attribute.PathAsCallback && mightyMember.GetValueFromMember(target, attribute.IconPath, out string pathValue))
            {
                path = pathValue;
            }

            return(MightyGUIUtilities.GetTexture(path));
        }