Lachee / discord-rpc-unity

C# custom implementation for Discord Rich Presence. Unity package to easy add to your own games.
MIT License
39 stars 2 forks source link

Build error due to discord icon #13

Open webik150 opened 3 months ago

webik150 commented 3 months ago

When building (Unity 2022.3.16f1 and discord-rpc-unity@1.1.1), I encounter the following error:

An asset is marked with HideFlags.DontSave but is included in the build: Asset: 'Packages/com.lachee.discordrpc/Resources/discord_logo.png' Asset name: discord_logo (You are probably referencing internal Unity data in your build.)

I think the issue is that the icons folder is named Resources which is a special folder name meant for files automatically packaged with builds for runtime loading.

If I turn the package into a local package and rename the icons folder to "Icons", build finishes successfully.