Give Page Feedback

Slice Processors - Component Copier

The Component Copier is a simple Slice Processor that allows you to copy a single Component from the source Terrain to each slice. The component is copied exactly as is without any changes. If data needs to be modified to account for the slice, you will need to create a custom Slice Processor that does so.

The Copier only copies a single component, however you are free to add multiple Copiers to copy over multiple components.

Creating A Component Copier Asset

You can create this asset by selecting from the Top Menu Bar:

Assets -> Create -> Deep Space Labs -> Terra Slicer -> Slice Processors -> Component Copier

Creating A Component Copier From The Top Menu Bar GIF

or by right clicking a folder (or inside a folder) within the Project Hierarchy and selecting from the pop up menu:

Create -> Deep Space Labs -> Terra Slicer -> Slice Processors -> Component Copier

Creating A Component Copier From Right Click GIF

By default this Asset is given the name ComponentCopier, however we recommend changing this name to something that will better help you differentiate it with other Component Copier Assets in the future.

Prefab Gotchas

If you have added a component to a prefab instance and attempt to slice the prefab, remember that the root prefab asset is used in the slicing operation rather than the prefab instance. This means, if you have not applied the prefab instance changes (which included the addition of the component) to the prefab source asset, the component you added will not be found by the Component Copier.

GetComponent

The Copier uses the string version of GetComponent to retrieve the component from the source asset. If you are not sure of your components name, you should test with different strings to ensure the name is correct before slicing your terrain!