> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksbuildutils/ks.reactor.client.unity.editor.ksbuildutils.prefabinfo.md).

# Struct ksBuildUtils.PrefabInfo

Namespace: [KS.Reactor.Client.Unity.Editor](/reactor/api-reference/ks.reactor.client.unity.editor.md)\
Assembly: KSUnity-Source.dll

Stores a prefab with its path and asset bundle.

```csharp
public struct ksBuildUtils.PrefabInfo
```

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### PrefabInfo(GameObject, string, string) <a href="#ks_reactor_client_unity_editor_ksbuildutils_prefabinfo__ctor_unityengine_gameobject_system_string_sy" id="ks_reactor_client_unity_editor_ksbuildutils_prefabinfo__ctor_unityengine_gameobject_system_string_sy"></a>

Constructor

```csharp
public PrefabInfo(GameObject gameObject, string path, string assetBundle = null)
```

#### Parameters

`gameObject` GameObject

Prefab game object

`path` [string](https://learn.microsoft.com/dotnet/api/system.string)

Path to the prefab.

`assetBundle` [string](https://learn.microsoft.com/dotnet/api/system.string)

Asset bundle path. Null if the prefab is not in an asset bundle.

## Fields

### AssetBundle <a href="#ks_reactor_client_unity_editor_ksbuildutils_prefabinfo_assetbundle" id="ks_reactor_client_unity_editor_ksbuildutils_prefabinfo_assetbundle"></a>

Path to asset bundle the prefab is in. Null if not in an asset bundle.

```csharp
public string AssetBundle
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GameObject <a href="#ks_reactor_client_unity_editor_ksbuildutils_prefabinfo_gameobject" id="ks_reactor_client_unity_editor_ksbuildutils_prefabinfo_gameobject"></a>

The prefab game object.

```csharp
public GameObject GameObject
```

#### Field Value

GameObject

### Path <a href="#ks_reactor_client_unity_editor_ksbuildutils_prefabinfo_path" id="ks_reactor_client_unity_editor_ksbuildutils_prefabinfo_path"></a>

Path to the prefab

```csharp
public string Path
```

#### Field Value

[string](https://learn.microsoft.com/dotnet/api/system.string)
