Skip to content

Components

WhistleWiz edited this page Sep 21, 2024 · 3 revisions

Car Changer provides a bunch of components to help you bring your changes to life. Here's a list of what they are and do.

UseDefaultMaterial

Probably the most important, this allows you to use the default material of a car without having to include it with your mod. It also makes it work with skins.

Source Material

The material you want to use. You can find the list of supported materials of each car here.

Material Object Path

If the material isn't available through the Source Material dropdown, but it exists in the car, you can use this to specify a path to a transform with the material you want. Use RUE (Runtime Unity Editor) to check ingame where your object actually is.

FromInterior

If the path to the material should use the interior object instead of the main car object.

Generate Exploded Material Procedurally

In case the exploded variant of a material isn't available, you can use check this option to procedurally create that material from its corresponding "normal" version.

Note

Using this component on bogies isn't currently supported.

HideTransformsOnChange

This component can hide a list of transforms when the change is applied. You can use it in cases the option isn't provided by the mod, or with the extra flexibility provided by mods such as Locomotive Mesh Splitter.

Transform Paths

The path to the transforms. This component is context aware, so if on the body it is relative to the car root, if on the interactables or interior it's relative to the interior root.

Tip

You can use this on colliders to disable them.

MoveTransformsOnChange

Similar to the component above, but for moving transforms. Do not use this to move controls, or you may get unexpected results.

Position, Rotation, Scale

Alter the corresponding parameters of the transforms in the list.

Relative

If true, the previous transformations are applied to the original ones, otherwise they are set to the provided values. For example:

  • Original transform position: (0, 2, 1)
  • Position change: (0, 0, 1)
  • With relative:
    • Result: (0, 2, 2)
  • Without relative:
    • Result: (0, 0, 1)

Transform Paths

The path to the transforms. This component is context aware, so if on the body it is relative to the car root, if on the interactables or interior it's relative to the interior root.

Clone this wiki locally