ar观察者模式
This commit is contained in:
1 parent
df936c4e04
commit
7822584cdd
62 files changed
+8331
-7049
No files matched your search
@@ -474,7 +474,7 @@ public class Davinci : MonoBehaviour
|
||||
break;
|
||||
|
||||
color = image.color;
|
||||
maxAlpha = color.a;
|
||||
maxAlpha = Math.Max(color.a, 1);
|
||||
|
||||
if (fadeTime > 0)
|
||||
{
|
||||
|
||||
@@ -378,12 +378,12 @@ namespace Assets.Scripts
|
||||
}
|
||||
public static Dictionary<string, Texture> propTextureCache = new Dictionary<string, Texture>();
|
||||
public delegate Coroutine StartCoroutine(IEnumerator routine);
|
||||
public static void DisplayImage(MaskableGraphic img, string url, bool cache = true,Dictionary<string,Texture> caches = null)
|
||||
public static void DisplayImage(MaskableGraphic img, string url, bool cache = true,Dictionary<string,Texture> caches = null,float fadeTime = 0)
|
||||
{
|
||||
if (string.IsNullOrEmpty(url))
|
||||
return;
|
||||
|
||||
Davinci.get().load(url).setCached(cache).into(img).setFadeTime(0).start();
|
||||
Davinci.get().load(url).setCached(cache).into(img).setFadeTime(fadeTime).start();
|
||||
return;
|
||||
//可以考虑缓存到硬盘里
|
||||
//Texture2D tex = null;
|
||||
|
||||
Reference in new issue
Block a user