C# Class UnityEditor.AvatarPreview

Exibir arquivo Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
fps int
timeControl TimeControl

Protected Properties

Property Type Description
m_ViewTool ViewTool

Public Methods

Method Description
AvatarPreview ( UnityEngine previewObjectInScene, Motion objectOnSameAsset ) : System
AvatarTimeControlGUI ( Rect rect ) : void
DoAvatarPreview ( Rect rect, GUIStyle background ) : void
DoAvatarPreviewDrag ( EventType type ) : void
DoAvatarPreviewFrame ( Event evt, EventType type, Rect previewRect ) : void
DoAvatarPreviewOrbit ( Event evt, Rect previewRect ) : void
DoAvatarPreviewPan ( Event evt ) : void
DoAvatarPreviewZoom ( Event evt, float delta ) : void
DoPreviewSettings ( ) : void
DoRenderPreview ( Rect previewRect, GUIStyle background ) : void
DoSelectionChange ( ) : void
FindBestFittingRenderableGameObjectFromModelAsset ( Object asset, ModelImporterAnimationType animationType ) : GameObject
GetAnimationType ( GameObject go ) : ModelImporterAnimationType
GetAnimationType ( Motion motion ) : ModelImporterAnimationType
IsValidPreviewGameObject ( GameObject target, ModelImporterAnimationType requiredClipType ) : bool
OnDestroy ( ) : void
ResetPreviewInstance ( ) : void

Protected Methods

Method Description
GetCurrentMouseWorldPosition ( Event evt, Rect previewRect ) : Vector3
HandleMouseDown ( Event evt, int id, Rect previewRect ) : void
HandleMouseDrag ( Event evt, int id, Rect previewRect ) : void
HandleMouseUp ( Event evt, int id ) : void
HandleViewTool ( Event evt, EventType eventType, int id, Rect previewRect ) : void

Private Methods

Method Description
CalculatePreviewGameObject ( UnityEngine selectedAnimator, Motion motion, ModelImporterAnimationType animationType ) : GameObject
GetFirstAnimationClipFromMotion ( Motion motion ) : AnimationClip
GetGenericAnimationFallback ( ) : GameObject
GetHumanoidFallback ( ) : GameObject
Init ( ) : void
InitInstance ( UnityEngine scenePreviewObject, Motion motion ) : void
PositionPreviewObjects ( Quaternion pivotRot, Vector3 pivotPos, Quaternion bodyRot, Vector3 bodyPos, Quaternion directionRot, Quaternion rootRot, Vector3 rootPos, Vector3 directionPos, float scale ) : void
PreviewSlider ( float val, float snapThreshold ) : float
RenderPreviewShadowmap ( Light light, float scale, Vector3 center, Vector3 floorPos, Matrix4x4 &outShadowMatrix ) : RenderTexture
Repeat ( int t, int length ) : int
SetPreview ( GameObject gameObject ) : void
SetPreviewAvatarOption ( object obj ) : void
SetPreviewCharacterEnabled ( bool enabled, bool showReference ) : void
SetupBounds ( GameObject go ) : void
SetupPreviewLightingAndFx ( ) : bool
TeardownPreviewLightingAndFx ( bool oldFog ) : void

Method Details

AvatarPreview() public method

public AvatarPreview ( UnityEngine previewObjectInScene, Motion objectOnSameAsset ) : System
previewObjectInScene UnityEngine
objectOnSameAsset UnityEngine.Motion
return System

AvatarTimeControlGUI() public method

public AvatarTimeControlGUI ( Rect rect ) : void
rect UnityEngine.Rect
return void

DoAvatarPreview() public method

public DoAvatarPreview ( Rect rect, GUIStyle background ) : void
rect UnityEngine.Rect
background UnityEngine.GUIStyle
return void

DoAvatarPreviewDrag() public method

public DoAvatarPreviewDrag ( EventType type ) : void
type EventType
return void

DoAvatarPreviewFrame() public method

public DoAvatarPreviewFrame ( Event evt, EventType type, Rect previewRect ) : void
evt UnityEngine.Event
type EventType
previewRect UnityEngine.Rect
return void

DoAvatarPreviewOrbit() public method

public DoAvatarPreviewOrbit ( Event evt, Rect previewRect ) : void
evt UnityEngine.Event
previewRect UnityEngine.Rect
return void

DoAvatarPreviewPan() public method

public DoAvatarPreviewPan ( Event evt ) : void
evt UnityEngine.Event
return void

DoAvatarPreviewZoom() public method

public DoAvatarPreviewZoom ( Event evt, float delta ) : void
evt UnityEngine.Event
delta float
return void

DoPreviewSettings() public method

public DoPreviewSettings ( ) : void
return void

DoRenderPreview() public method

public DoRenderPreview ( Rect previewRect, GUIStyle background ) : void
previewRect UnityEngine.Rect
background UnityEngine.GUIStyle
return void

DoSelectionChange() public method

public DoSelectionChange ( ) : void
return void

FindBestFittingRenderableGameObjectFromModelAsset() public static method

public static FindBestFittingRenderableGameObjectFromModelAsset ( Object asset, ModelImporterAnimationType animationType ) : GameObject
asset Object
animationType ModelImporterAnimationType
return UnityEngine.GameObject

GetAnimationType() public static method

public static GetAnimationType ( GameObject go ) : ModelImporterAnimationType
go UnityEngine.GameObject
return ModelImporterAnimationType

GetAnimationType() public static method

public static GetAnimationType ( Motion motion ) : ModelImporterAnimationType
motion UnityEngine.Motion
return ModelImporterAnimationType

GetCurrentMouseWorldPosition() protected method

protected GetCurrentMouseWorldPosition ( Event evt, Rect previewRect ) : Vector3
evt UnityEngine.Event
previewRect UnityEngine.Rect
return Vector3

HandleMouseDown() protected method

protected HandleMouseDown ( Event evt, int id, Rect previewRect ) : void
evt UnityEngine.Event
id int
previewRect UnityEngine.Rect
return void

HandleMouseDrag() protected method

protected HandleMouseDrag ( Event evt, int id, Rect previewRect ) : void
evt UnityEngine.Event
id int
previewRect UnityEngine.Rect
return void

HandleMouseUp() protected method

protected HandleMouseUp ( Event evt, int id ) : void
evt UnityEngine.Event
id int
return void

HandleViewTool() protected method

protected HandleViewTool ( Event evt, EventType eventType, int id, Rect previewRect ) : void
evt UnityEngine.Event
eventType EventType
id int
previewRect UnityEngine.Rect
return void

IsValidPreviewGameObject() public static method

public static IsValidPreviewGameObject ( GameObject target, ModelImporterAnimationType requiredClipType ) : bool
target UnityEngine.GameObject
requiredClipType ModelImporterAnimationType
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

ResetPreviewInstance() public method

public ResetPreviewInstance ( ) : void
return void

Property Details

fps public_oe property

public int fps
return int

m_ViewTool protected_oe property

protected ViewTool m_ViewTool
return ViewTool

timeControl public_oe property

public TimeControl timeControl
return TimeControl