---
title: ReplaceByOption
product: Asset Transformer SDK
version: '2026.5'
latest_version: '2026.5'
status: This page documents version 2026.5. The latest version is 2026.5.
canonical: https://docs.unity.com/en-us/asset-transformer-sdk/2026.5/api/csharp/algo_replacebyoption
latest_url: https://docs.unity.com/en-us/asset-transformer-sdk/2026.5/api/csharp/algo_replacebyoption.md
last_updated: 2026-09-11
generated_at: 2026-11-08T15:28:06.682Z
locale: en-us
---

# ReplaceByOption

> Struct

Inherited Members

* [Equals(object)](https://learn.microsoft.com/dotnet/api/system.valuetype.equals)

* [GetHashCode()](https://learn.microsoft.com/dotnet/api/system.valuetype.gethashcode)

* [ToString()](https://learn.microsoft.com/dotnet/api/system.valuetype.tostring)

* [Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\))

* [GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)

* [ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

***

Namespace: UnityEngine.Pixyz.Algo

```csharp
[Serializable]
public struct ReplaceByOption
```

## Fields

### Occurrence

```csharp
public ReplaceByOccurrenceOptions Occurrence
```

Returns

| Type                                                               | Description |
| ------------------------------------------------------------------ | ----------- |
| [ReplaceByOccurrenceOptions](./algo_replacebyoccurrenceoptions.md) |             |

### BoundingBox

```csharp
public ReplaceByBoxType BoundingBox
```

Returns

| Type                                           | Description |
| ---------------------------------------------- | ----------- |
| [ReplaceByBoxType](./algo_replacebyboxtype.md) |             |

### ConvexHull

```csharp
public int ConvexHull
```

Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

### Primitive

```csharp
public ReplaceByPrimitiveOptions Primitive
```

Returns

| Type                                                             | Description |
| ---------------------------------------------------------------- | ----------- |
| [ReplaceByPrimitiveOptions](./algo_replacebyprimitiveoptions.md) |             |

### \_type

```csharp
public ReplaceByOption.Type _type
```

Returns

| Type                                              | Description |
| ------------------------------------------------- | ----------- |
| [ReplaceByOption.Type](./replacebyoption_type.md) |             |
