Is there a system call to access the initial game icon as a Texture2D object? Seems silly to do this manually. Like load by Resource folder or get it from a game object, yada.
Thanks.
Is there a system call to access the initial game icon as a Texture2D object? Seems silly to do this manually. Like load by Resource folder or get it from a game object, yada.
Thanks.
If you need the access to the texture , just reference it. There is no call to get the icon at runtime.
In the editor you probably can access the player-preferences via script.
If I could just reference it I wouldn’t be asking… Otherwise I’ll be doing the old GameObject public var grab.
The icon is not included into the unity .assets files that are compiled on build, so you have no way to access it.
Is is for a specific platform? Maybe you can use a .net call to get the icon on windows or a other native call on ios or Android to retrieve the icon but unity does not provide it.
Do you like to access it to save some hard disk space of the application or its just a convenient thing, than you could make a editor script or something that is including it for you before the build.