discord-rpc-unity icon indicating copy to clipboard operation
discord-rpc-unity copied to clipboard

Build error due to discord icon

Open webik150 opened this issue 3 months ago • 0 comments

When building (Unity 2022.3.16f1 and [email protected]), 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.

webik150 avatar Mar 24 '24 22:03 webik150