| | |
| | |
|
| | | if (window == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadWindow() => 加载不到资源: {0}.", _name);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadWindow() => 加载不到资源: {0}.", _name);
|
| | | }
|
| | |
|
| | | return window;
|
| | |
| | |
|
| | | if (prefab == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadPrefab() => 加载不到资源: {0}.", _name);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadPrefab() => 加载不到资源: {0}.", _name);
|
| | | }
|
| | |
|
| | | return prefab;
|
| | |
| | |
|
| | | public static Sprite LoadSprite(string _iconKey)
|
| | | {
|
| | | var iconConfig = ConfigManager.Instance.GetTemplate<IconConfig>(_iconKey);
|
| | | var iconConfig = Config.Instance.Get<IconConfig>(_iconKey);
|
| | | if (iconConfig == null)
|
| | | {
|
| | | return null;
|
| | |
| | |
|
| | | if (sprite == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadSprite() => 加载不到资源: {0}.", file);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadSprite() => 加载不到资源: {0}.", file);
|
| | | }
|
| | |
|
| | | return sprite;
|
| | |
| | | {
|
| | | if (!AssetSource.uiFromEditor)
|
| | | {
|
| | | var iconConfig = ConfigManager.Instance.GetTemplate<IconConfig>(_iconKey);
|
| | | var iconConfig = Config.Instance.Get<IconConfig>(_iconKey);
|
| | | if (iconConfig != null)
|
| | | {
|
| | | var bundleName = StringUtility.Contact("ui/sprite/", iconConfig.folder.ToLower());
|
| | |
| | |
|
| | | if (font == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadFont() => 加载不到资源: {0}.", _fontName);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadFont() => 加载不到资源: {0}.", _fontName);
|
| | | }
|
| | |
|
| | | return font;
|