码迷,mamicode.com
首页 > 其他好文 > 详细

关于清除贴图与光域网路径

时间:2015-02-12 12:15:05      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

写了个有关清除贴图与光域网路径的函数,简单实用,不过最好保证所有贴图都在文件根目录下再运行.

fn clear_bitmap_path =
(
    YY_Bitmaps = getClassInstances BitmapTexture
    YY_Webfiles = getClassInstances Target_Light + getClassInstances Free_Light
    for b in YY_Bitmaps do
    (
        print (b.filename)
        b.filename = filenameFromPath b.filename
    )
    for w in YY_Webfiles do
    (
        w.webfile = filenameFromPath w.webfile
    )
)--清除贴图与光域网路径

会清除路径只保留名,相当于把所有路径设置为条带路径.

关于清除贴图与光域网路径

标签:

原文地址:http://www.cnblogs.com/3dxy/p/4287668.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!