Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
p = DotNetClass "System.IO.Path"
-- path をプリントするだけ
for map in ( GetClassInstances BitmapTexture ) do(
-- 絶対パスから名前と拡張子を取り出す
fileNameExtension = p.GetFileName( map.fileName )
-- テクスチャパスを相対パスに
map.fileName = "..\\tex\\" + fileNameExtension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.