Issue

When using build machine (headless unity instance/batch mode) you may encounter behaviour where SDF Textures/Sprites is imported as just empty rectangles instead of proper SDF.

Expected result

image.png

Actual result

image.png

Why this is happening?

SDF generation backend using GPU to generate SDF textures, and unity in headless mode by default using -nographics argument.

How to fix?

  1. Use build machine with access to GPU
  2. Remove -nographics argument. More about arguments HERE
  3. PROFIT