Skip to content

CustomPreviewStage

ClassAssetInventoryAssetInventory.Editor
public class CustomPreviewStage : PreviewSceneStage

No description is available for this type.

public Camera Camera { get; }

No description is available for this member.

Returns

UnityEngine.Camera — No return description is available.

public Light Light { get; }

No description is available for this member.

Returns

UnityEngine.Light — No return description is available.

public Light SecondaryLight { get; }

No description is available for this member.

Returns

UnityEngine.Light — No return description is available.

public GameObject InstantiatedPrefab { get; }

No description is available for this member.

Returns

UnityEngine.GameObject — No return description is available.

public CustomPrefabPreviewGenerator.PrefabType PrefabType { get; set; }

No description is available for this member.

Returns

AssetInventory.CustomPrefabPreviewGenerator.PrefabType — No return description is available.

public AnimationClip FBXAnimationClip { get; set; }

No description is available for this member.

Returns

UnityEngine.AnimationClip — No return description is available.

public float FBXStaticPreviewSampleTime { get; set; }

No description is available for this member.

Returns

System.Single — No return description is available.

public bool NeedsBoneVisualization { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public void SetScene(Scene sceneIn, bool isPreviewScene = true)

No description is available for this member.

Parameters

Name Type Description
sceneIn UnityEngine.SceneManagement.Scene
isPreviewScene System.Boolean
public void ReplaceInstantiatedPrefab(GameObject newPrefab)

No description is available for this member.

Parameters

Name Type Description
newPrefab UnityEngine.GameObject
public void SetupScene(GameObject prefab, float animationDuration = 0)

No description is available for this member.

Parameters

Name Type Description
prefab UnityEngine.GameObject
animationDuration System.Single

SetupSceneForMaterial(GameObject, PreviewMeshType)

Section titled “SetupSceneForMaterial(GameObject, PreviewMeshType)”
public void SetupSceneForMaterial(GameObject meshObject, CustomMaterialPreviewGenerator.PreviewMeshType meshType)

Simplified setup for material previews. Sets up scene with a pre-created mesh object.

Parameters

Name Type Description
meshObject UnityEngine.GameObject The primitive mesh GameObject with material already applied.
meshType AssetInventory.CustomMaterialPreviewGenerator.PreviewMeshType The type of mesh being used for the preview.
public void UpdateBackgroundQuadPosition()

No description is available for this member.

public Texture2D RenderFrame(int width, int height)

No description is available for this member.

Parameters

Name Type Description
width System.Int32
height System.Int32

Returns

UnityEngine.Texture2D — No return description is available.

public Texture2D RenderFrameForDetection(int width, int height)

No description is available for this member.

Parameters

Name Type Description
width System.Int32
height System.Int32

Returns

UnityEngine.Texture2D — No return description is available.

public void RestoreEnvironment()

No description is available for this member.

protected override GUIContent CreateHeaderContent()

Creates the header content for this Stage. Both the Hierarchy window header and Scene view breadcrumb bar use this content.

Returns

UnityEngine.GUIContent —

The header content for this Stage.