PrefabPreviewUtilities
public static class PrefabPreviewUtilitiesStatic utility methods for prefab preview generation. Contains common functionality shared across UI, VFX, Particle, Model, and FBX generators.
Methods
Section titled “Methods”
DetectPrefabType(GameObject)
Section titled “DetectPrefabType(GameObject)”public static PrefabPreviewUtilities.PrefabType DetectPrefabType(GameObject prefab)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
prefab |
UnityEngine.GameObject |
Returns
AssetInventory.PrefabPreviewUtilities.PrefabType — No return description is available.
NeedsTemporaryCanvas(GameObject)
Section titled “NeedsTemporaryCanvas(GameObject)”public static bool NeedsTemporaryCanvas(GameObject prefab)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
prefab |
UnityEngine.GameObject |
Returns
System.Boolean — No return description is available.
CreateTemporaryCanvas(GameObject, Camera, Scene)
Section titled “CreateTemporaryCanvas(GameObject, Camera, Scene)”public static GameObject CreateTemporaryCanvas(GameObject uiPrefab, Camera previewCamera, Scene targetScene)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
uiPrefab |
UnityEngine.GameObject | |
previewCamera |
UnityEngine.Camera | |
targetScene |
UnityEngine.SceneManagement.Scene |
Returns
UnityEngine.GameObject — No return description is available.
ConfigureCanvasForPreview(GameObject, Camera)
Section titled “ConfigureCanvasForPreview(GameObject, Camera)”public static void ConfigureCanvasForPreview(GameObject prefab, Camera previewCamera)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
prefab |
UnityEngine.GameObject | |
previewCamera |
UnityEngine.Camera | |
HandleParticleSystems(GameObject)
Section titled “HandleParticleSystems(GameObject)”public static void HandleParticleSystems(GameObject go)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
go |
UnityEngine.GameObject | |
CalculateOptimalParticleTime(GameObject)
Section titled “CalculateOptimalParticleTime(GameObject)”public static float CalculateOptimalParticleTime(GameObject go)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
go |
UnityEngine.GameObject |
Returns
System.Single — No return description is available.
GetParticleSystemDuration(GameObject)
Section titled “GetParticleSystemDuration(GameObject)”public static float GetParticleSystemDuration(GameObject go)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
go |
UnityEngine.GameObject |
Returns
System.Single — No return description is available.
ForceLODLevel0(GameObject)
Section titled “ForceLODLevel0(GameObject)”public static void ForceLODLevel0(GameObject go)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
go |
UnityEngine.GameObject | |
ConvertMaterialsToCurrentPipeline(GameObject)
Section titled “ConvertMaterialsToCurrentPipeline(GameObject)”public static void ConvertMaterialsToCurrentPipeline(GameObject go)Converts materials on a GameObject to use shaders compatible with the current render pipeline. Unity’s built-in avatar models use the Standard shader which appears purple in URP/HDRP. Replaces incompatible materials with ones using the appropriate Lit shader.
Parameters
| Name | Type | Description |
|---|---|---|
go |
UnityEngine.GameObject | The GameObject whose materials should be converted. |