大调整
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using FairyGUI;
|
||||
using NBC;
|
||||
using NBC.Asset;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
@@ -26,7 +27,8 @@ namespace NBF
|
||||
else
|
||||
{
|
||||
Log.Info($"LoadExternal={url}");
|
||||
_texture = Resources.Load<Texture>(url);
|
||||
// _texture = Resources.Load<Texture>(url);
|
||||
_texture = Assets.Load<Texture>(url);
|
||||
if (_texture != null)
|
||||
onExternalLoadSuccess(new NTexture(_texture));
|
||||
else
|
||||
@@ -47,7 +49,7 @@ namespace NBF
|
||||
|
||||
if (tex.nativeTexture != null)
|
||||
{
|
||||
Resources.UnloadAsset(_texture);
|
||||
// Resources.UnloadAsset(_texture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user