• Unity
  • How to suppress warning about automatically setting atlases?

  • Изменено
Related Discussions
...

I'm writing a script that:

  1. generates skeletons from .spine files

  2. moves the skeletons into various directories

  3. generates whatever atlases are required by those skeletons

  4. moves the atlases into another directory (for organization reasons; this is not negotiable)

  5. automatically assigns to each skeleton the appropriate atlas

However: before the script can reach step 5, the editor has already shown errors like this many many times:

Clicking "import without atlases" works fine, but requires a human to sit and click the button each time it appears (and on a large enough import, this might be many many times). (Clicking 'stop importing' prevents the rest of the popups, but also prevents the rest of the automated steps that ARE required.)

Is there any way for me to suppress this warning appearing when Unity imports a .skel.bytes file, since I know that my script is going to take care of the atlas assignment a moment later?

Hello, please see the link below for a reply from Harri about this issue.
Can I suppress atlas warning dialog?

Thank you for the suggestion! That's close to resolving it, but I'd like to follow up and mention for anyone else in that situation: commenting out the line mentioned in the other thread will just stop the import process cold, as though you'd clicked "stop importing". If you want it to instead default to "import without atlases" (as I require), leave the indicated line alone, and instead change the INTERIOR of the SkeletonImportDialogue function... comment out the DisplayDialogComplex call, and hardcode a value to int result instead.