Skip to content

Custom assets

lotok14 edited this page Oct 28, 2024 · 3 revisions

Making custom assets

  1. Download the unity project from here
  2. Open it in unity and go to CustomAssets/fuelBar or CustomAssets/puckBar
  • From now on, I will refer to either of those two as xxxxBar
  1. Double click on either of the images and change the texture
  • if the texture is a different size, on the left go to xxxxBarCanvas/xxxxBar/xxxxBarFill and click on SetNativeSize on the right
  • Optional: Changing the fill direction
    • On the left go to xxxxBarCanvas/xxxxBar/xxxxBarFill
    • On the right select the prefered Fill Method and Fill Origin
    • Check if you're satisfied by using the Fill Amount slider
    • Remove the xxxxBar prefab from CustomAssets/xxxxBar
    • Drag the entire object from the top left view to the bottom bar to create a new prefab
    • Click on the prefab and on the bottom right select the assetBundle to be xxxxBar
  1. On the bottom, go to StreamingAssets
  • If there's anything in there, delete it
  1. on the top left click on Assets/Build AssetBundles
  • If nothing has appeared in the SteamingAssets folder, do it a second time
  1. In file explorer go to [projectFolder]/Assets/StreamingAssets/ and copy the file called xxxxBar
  2. Go to [UCH]/BepInEx/plugins/LTKConfiguration/Assets/xxxxBar/ and remove the xxxxBar.assetBundle file
  3. Paste the previously copied file and rename it to xxxxBar.assetBundle
Clone this wiki locally