Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

lilToon焼き込みかつTTTを使っていると例外が発生して死ぬ #275

@KisaragiEffective

Description

@KisaragiEffective
        private void CopyTextureSetting(Texture2D fromTexture, Texture2D toTexture)
        {
            if(fromTexture == null || toTexture == null) return;
            string fromPath = AssetDatabase.GetAssetPath(fromTexture);
            string toPath = AssetDatabase.GetAssetPath(toTexture);
            Debug.Log($"{fromPath} => {toPath}");
            var fromTextureImporter = (TextureImporter)AssetImporter.GetAtPath(fromPath);
            var toTextureImporter = (TextureImporter)AssetImporter.GetAtPath(toPath);
        }

Texture2Dのアセットのパスのインポーターが常に TextureImporter と仮定しているのがよくなさそう。最新版にしたら治ったりする?
それともupstream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requestedupstreamissue can be reproduced without RIH

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions