Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Texture imported with the customized importer NOT support URP 2D lighting secondary textures

Discussion in 'Editor & General Support' started by suntabu, Nov 23, 2021.

  1. suntabu

    suntabu

    Joined:
    Dec 21, 2013
    Posts:
    76
    As said above, I created a customized importer for processing texture when importing.

    But recently my project started using the URP 2D Lighting package, nightmare happened, all of my customized textures do NOT support the secondary textures feature.

    I've tried to create a field named `secondarySpriteTextures` in the importer class and it was serialized in the metafile too, but the secondary textures are not linked to the sprite renderer's material.

    below is the FrameDebugger showing:

    img.png

    So how to solve this issue?
     
    Last edited: Nov 23, 2021
  2. suntabu

    suntabu

    Joined:
    Dec 21, 2013
    Posts:
    76
    I solved this issue by referencing from PSDImporter