Otherwise, load all resources with an empty path and select the one you want:Įx: Resources.LoadAll('').First(x=>x.name = nameOfTheSprite) For example, most sprites are in the “Sprites” folder.Įx: Resources.Load(“Sprites/nameOfTheSprite”) There is unfortunately no way for us to know the folder hierarchy the devs used. To load a resource, you need to provide a path to the Load or LoadAll method. Load will retrieve any asset that was put into the “Resources” folder in Unity by the devs. Any asset put into the “Resources” folder by the game’s developpers can be retrieve with Resources.Load(pathOfAsset) Īll other assets need to be retrieved with Resources.FindObjectsOfTypeAll(pathOfAsset) Load Unity provides the Resources class to retrieve assets in the game. You can either do a Harmony patch and override a method or check if the element implements a component referenced by a singleton class such as CanvasHandler.Īn other way is to extract the assets and look them all up (see below) Use Unity’s Resources class You will need to find an element that has the asset that you want and print its name. This part is a bit tricky and will require a LOT of digging on your part. Programatically (advanced) Finding the name of the asset Here is how you can retrieve and use those assets. However, you might need to use other assets in your mod. The ModKit provides a few basic assets, namely sprites for the buttons and panels.