diff options
| author | yum <yum.food.vr@gmail.com> | 2025-07-23 22:53:08 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-07-23 22:53:08 -0700 |
| commit | 4539f87e36cb3ca554e1e174c19206b552107c57 (patch) | |
| tree | 6f9aca818989773cc10f3c465224a07f847eb279 /Scripts/set_texture_sz.py | |
| parent | f6b93a20d754579008076e85f5c0a97e1bcbc258 (diff) | |
Delete unused filesv1.0.0-beta00
Diffstat (limited to 'Scripts/set_texture_sz.py')
| -rw-r--r-- | Scripts/set_texture_sz.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Scripts/set_texture_sz.py b/Scripts/set_texture_sz.py deleted file mode 100644 index f6fbb45..0000000 --- a/Scripts/set_texture_sz.py +++ /dev/null @@ -1,24 +0,0 @@ -import argparse -import libunity -import sys - -def setTextureSize(path: str, size: int): - parser = libunity.MulticoreUnityParser() - anim = parser.parseFile(path) - - node = anim.nodes[0] - node.mapping['TextureImporter'].mapping['maxTextureSize'] = size - for plat in node.mapping['TextureImporter'].mapping['platformSettings'].sequence: - plat.mapping['maxTextureSize'] = size - - with open(path, "w", encoding="utf-8") as f: - f.write(libunity.unityYamlToString(anim.nodes)) - -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("--meta", type=str, help="Path to texture .meta file.") - parser.add_argument("--size", type=int, help="Texture size.") - args = parser.parse_args() - - setTextureSize(args.meta, args.size) - |
