elringus / sprite-dicing

Cross-engine tool for lossless compression of sprites with identical areas
https://dicing.elringus.me
MIT License
1.36k stars 147 forks source link

No referencing possible to SpriteDicing.DicedSpriteAtlas #45

Open Helvest opened 2 weeks ago

Helvest commented 2 weeks ago

Hello,

I am encountering an issue with the Elringus.SpriteDicing.Runtime.asmdef file. Currently, the option "Auto Referenced" is on false by default, which prevents me from referencing SpriteDicing.DicedSpriteAtlas elsewhere in my code.

I would like to know if it is possible to change this to true by default or if there is an reason why it is set up this way.

Thank you for your assistance.

elringus commented 2 weeks ago

Hi, It's disabled to prevent unnecessary overhead in compile times when you don't need to access the API. This is considered the best practice for most Unity extensions.

To access the API, keep your own code under an asmdef and explicitly reference SpriteDicing.

Helvest commented 2 weeks ago

Ok, thank you

github-actions[bot] commented 4 days ago

This issue is stale because it has been open 14 days with no activity. It will be automatically closed in 7 days.