CustomPreviewStage
public class CustomPreviewStage : PreviewSceneStageNo description is available for this type.
Properties
Section titled “Properties”
Camera
Section titled “Camera”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.
SecondaryLight
Section titled “SecondaryLight”public Light SecondaryLight { get; }No description is available for this member.
Returns
UnityEngine.Light — No return description is available.
InstantiatedPrefab
Section titled “InstantiatedPrefab”public GameObject InstantiatedPrefab { get; }No description is available for this member.
Returns
UnityEngine.GameObject — No return description is available.
PrefabType
Section titled “PrefabType”public CustomPrefabPreviewGenerator.PrefabType PrefabType { get; set; }No description is available for this member.
Returns
AssetInventory.CustomPrefabPreviewGenerator.PrefabType — No return description is available.
FBXAnimationClip
Section titled “FBXAnimationClip”public AnimationClip FBXAnimationClip { get; set; }No description is available for this member.
Returns
UnityEngine.AnimationClip — No return description is available.
FBXStaticPreviewSampleTime
Section titled “FBXStaticPreviewSampleTime”public float FBXStaticPreviewSampleTime { get; set; }No description is available for this member.
Returns
System.Single — No return description is available.
NeedsBoneVisualization
Section titled “NeedsBoneVisualization”public bool NeedsBoneVisualization { get; set; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Methods
Section titled “Methods”
SetScene(Scene, bool)
Section titled “SetScene(Scene, bool)”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 | |
ReplaceInstantiatedPrefab(GameObject)
Section titled “ReplaceInstantiatedPrefab(GameObject)”public void ReplaceInstantiatedPrefab(GameObject newPrefab)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
newPrefab |
UnityEngine.GameObject | |
SetupScene(GameObject, float)
Section titled “SetupScene(GameObject, float)”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. |
UpdateBackgroundQuadPosition()
Section titled “UpdateBackgroundQuadPosition()”public void UpdateBackgroundQuadPosition()No description is available for this member.
RenderFrame(int, int)
Section titled “RenderFrame(int, int)”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.
RenderFrameForDetection(int, int)
Section titled “RenderFrameForDetection(int, int)”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.
RestoreEnvironment()
Section titled “RestoreEnvironment()”public void RestoreEnvironment()No description is available for this member.
CreateHeaderContent()
Section titled “CreateHeaderContent()”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.