---
title: RaytraceInterface
product: Asset Transformer SDK
version: '2026.6'
latest_version: '2026.6'
status: This page documents version 2026.6. The latest version is 2026.6.
canonical: https://docs.unity.com/en-us/asset-transformer-sdk/2026.6/api/csharp/raytrace_raytraceinterface
latest_url: https://docs.unity.com/en-us/asset-transformer-sdk/2026.6/api/csharp/raytrace_raytraceinterface.md
last_updated: 2026-11-17
generated_at: 2026-11-18T06:31:54.701Z
locale: en-us
---

# RaytraceInterface

> Class

Inheritance

* [object](https://learn.microsoft.com/dotnet/api/system.object)
* [Interface](./api_interface.md)
* RaytraceInterface

***

Inherited Members

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

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

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

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

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

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

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

***

Namespace: UnityEngine.Pixyz.Raytrace

```csharp
public class RaytraceInterface : Interface
```

## Methods

### GetLastError

```csharp
public static string GetLastError()
```

Returns

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

### ConfigureFunctionLogger

```csharp
[HandleProcessCorruptedStateExceptions]
public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
```

Parameters

| Type                                                           | Name                | Description |
| -------------------------------------------------------------- | ------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | functionName        |             |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean)  | enableFunction      |             |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean)  | enableParameters    |             |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean)  | enableExecutionTime |             |

### RenderImage

```csharp
[HandleProcessCorruptedStateExceptions]
public void RenderImage(int width, int height, Camera camera, string outputImagePath)
```

Parameters

| Type                                                           | Name            | Description |
| -------------------------------------------------------------- | --------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32)     | width           |             |
| [int](https://learn.microsoft.com/dotnet/api/system.int32)     | height          |             |
| [Camera](./raytrace_camera.md)                                 | camera          |             |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | outputImagePath |             |
