摘要:
1 static void Setting(string assetPath, int maxSize, TextureImporterFormat androidFormat, TextureImporterFormat iosFormat) 2 { 3 var texImporter = AssetImporter.GetAtPath(assetPath) as Texture... 阅读全文
posted @ 2019-04-09 17:48
小·糊涂仙
阅读(1848)
评论(0)
推荐(0)
摘要:
1 var texImporter = AssetImporter.GetAtPath(assetPath) as TextureImporter; 2 if (texImporter.DoesSourceTextureHaveAlpha()) 3 { 4 Debug.Log("textures s 阅读全文
posted @ 2019-04-09 16:21
小·糊涂仙
阅读(1145)
评论(0)
推荐(0)
摘要:
1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEditor; 5 using System; 6 using UObject = UnityEngine.Object; 7 using System.IO; 8 ... 阅读全文
posted @ 2019-04-09 15:58
小·糊涂仙
阅读(576)
评论(0)
推荐(0)
摘要:
C#可空类型的实现逻辑: 1、装箱与拆箱 可空值类型的装箱:若可空值类型的为null,直接返回null,不进行任何装箱操作;否则进行正常的装箱操作. 可空值类型的拆箱操作:一个已装箱的值类型 T 可以拆箱为一个 T 或者 Nullable<T>;若已装箱的值类型为 null,拆箱为Nullable< 阅读全文
posted @ 2019-04-09 11:22
小·糊涂仙
阅读(852)
评论(0)
推荐(0)
摘要:
等价于: 阅读全文
posted @ 2019-04-09 11:15
小·糊涂仙
阅读(422)
评论(0)
推荐(0)