discord-rpc-unity
discord-rpc-unity copied to clipboard
Build error due to discord icon
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.