unity3D 根据所在文件夹自动设置一些属性
来源:互联网 发布:实况埃芬博格数据 编辑:程序博客网 时间:2024/06/05 09:25
12
13
14
15
16
17
18
usingUnityEngine;
usingSystem.Collections;
usingUnityEditor;
usingSystem.IO;
publicclass Post:AssetPostprocessor
{
voidOnPostprocessTexture(Texture2Dtexture)
{
stringAtlasName= newDirectoryInfo(Path.GetDirectoryName(assetPath)).Name;
TextureImportertextureImporter =assetImporterasTextureImporter;
textureImporter.textureType=TextureImporterType.Sprite;
textureImporter.spritePackingTag=AtlasName;
textureImporter.mipmapEnabled=false;
}
}
12
13
14
15
16
17
18
usingUnityEngine;
usingSystem.Collections;
usingUnityEditor;
usingSystem.IO;
publicclass Post:AssetPostprocessor
{
voidOnPostprocessTexture(Texture2Dtexture)
{
stringAtlasName= newDirectoryInfo(Path.GetDirectoryName(assetPath)).Name;
TextureImportertextureImporter =assetImporterasTextureImporter;
textureImporter.textureType=TextureImporterType.Sprite;
textureImporter.spritePackingTag=AtlasName;
textureImporter.mipmapEnabled=false;
}
}
0 0
- unity3D 根据所在文件夹自动设置一些属性
- 批处理自动设置指定文件/文件夹属性
- c# 设置文件夹属性
- 设置“当前文件夹”为“当前模块”所在文件夹
- linux 根据文件路径自动创建文件夹
- 根据网卡所在的硬件接口设置IP地址
- 设置文件夹访问权限,非文件夹属性
- Svn自动属性设置
- 自动设置属性对象
- Eclipse中,打开文件所在文件夹的插件,及设置
- Eclipse中,打开文件所在文件夹的插件,及设置
- Eclipse中,打开文件所在文件夹的插件,及设置
- Eclipse中,打开文件所在文件夹的插件,及设置
- Eclipse中,打开文件所在文件夹的插件,及设置
- Unity3d 导入图片 自动修改Texture Type为Sprite (2D and UI) 及设置 Packing Tag为文件夹名
- 根据Dictionary KEY 自动生成属性
- QT QString根据路径获取文件名称以及所在文件夹等信息
- Unity3D 判断所在平台
- 在/dev下自动创建设备节点
- 程序员编程艺术:第五章、寻找满足和为定值的两个或多个数
- 关于原码,反码,补码和左右移位的若干思考
- 初见WCF服务接口
- Nginx和Tomcat负载均衡实现session共享
- unity3D 根据所在文件夹自动设置一些属性
- 【Leetcode Algorithm】Add Binary
- Android开发:使用ViewDragHelper实现抽屉拉伸效果
- Json_jackson_me
- HEVC问题
- Java串口通信详解
- extern
- Color---颜色对照表
- 黑马程序员----OC学习笔记之属性学习