SDF Import

Sample that goes over how to import SDF for texture trough code. And how to change its SDFImportSettings .

Fix texture (Import SDF)

This function ensures that sdf is generated for texture.

<aside> 💡 Texture need to be configured to sprite mode, and have sprites defined, function changes only sdf import settings.

</aside>

Set import settings

Code

Untitled

Both functions used if pretty simple, just pass persistent texture. And in case of SetImportSettings also provide sdf import settings.

SetImportSettingsis much more versatile then FixTextures, while second one is basically a wrapper around first.

Texture Validation