Repository navigation
Livery
Bartholomew Ho edited this page Nov 15, 2026
·
1 revision
The livery editor's layer limits.
New in 0.12.0.
protected override void OnInit() => Livery.SetLayerLimits(hoodAndSides: 20000, bumpersAndWing: 20000);Protected Overrides Sub OnInit()
Livery.SetLayerLimits(20000, 20000)
End Sub| Member | What it does |
|---|---|
SetLayerLimits(int hoodAndSides, int bumpersAndWing) |
Raises the layer limits: the hood and both sides (the game's is 3,000 each), the bumpers and the wing (1,000), up to MaxLayerLimit. Call it once, from OnInit. Any thread. |
GameHoodAndSidesLimit, GameBumpersAndWingLimit (constants) |
The game's own limits: 3,000 and 1,000. |
MaxLayerLimit (constant) |
20,000: the most tested in the game (what FH2 Layer Patcher shipped). The limits are 16-bit. |
- It changes the numbers in the game's code as the game starts, all four places or none. If any isn't as expected (another game build, or the exe patched on disk by FH2 Layer Patcher), nothing changes and
platform.logsays why. - Once a session: changing it again needs a restart.
- A livery with more layers than the game's own limits may not open in a game without the change.
- The same change as FH2 Livery Layer Patch: don't use both.
-
Garage, CarCatalog, Profile:
Garage.SetCapacityworks the same way.
Playing
Getting started
Writing mods
- Hosted or NativeAOT?
- Threads
- Reloading and debugging
- Reading game memory safely
- Pop-ups, tips and message boxes
- Translations
The FH2 classes
- Game
- Player
- Vehicle
- World
- Garage, CarCatalog, Profile
- UI and Hud
- Camera
- Audio
- ANNA
- Skills
- Radio
- Livery
- GameDb
- DebugOverlay
- Controller
- GameInput
- GameWindow
- Menus and UiElement
- SettingsTile
- ButtonIcons and Picture
- MapView, PhotoCamera, GarageCamera
More