-
Notifications
You must be signed in to change notification settings - Fork 0
Custom assets
lotok14 edited this page Oct 28, 2024
·
3 revisions
- Download the unity project from here
- Open it in unity and go to
CustomAssets/fuelBar
orCustomAssets/puckBar
- From now on, I will refer to either of those two as xxxxBar
- 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 onSetNativeSize
on the right - Optional: Changing the fill direction
- On the left go to
xxxxBarCanvas/xxxxBar/xxxxBarFill
- On the right select the prefered
Fill Method
andFill 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
- On the left go to
- On the bottom, go to
StreamingAssets
- If there's anything in there, delete it
- on the top left click on
Assets/Build AssetBundles
- If nothing has appeared in the
SteamingAssets
folder, do it a second time
- In file explorer go to
[projectFolder]/Assets/StreamingAssets/
and copy the file calledxxxxBar
- Go to
[UCH]/BepInEx/plugins/LTKConfiguration/Assets/xxxxBar/
and remove thexxxxBar.assetBundle
file - Paste the previously copied file and rename it to
xxxxBar.assetBundle