C# Class UnityEditor.AvatarPreview

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
fps int
timeControl TimeControl

Protected Properties

Свойство Type Description
m_ViewTool ViewTool

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AvatarPreview ( UnityEngine previewObjectInScene, Motion objectOnSameAsset ) : System
previewObjectInScene UnityEngine
objectOnSameAsset UnityEngine.Motion
Résultat System

AvatarTimeControlGUI() public méthode

public AvatarTimeControlGUI ( Rect rect ) : void
rect UnityEngine.Rect
Résultat void

DoAvatarPreview() public méthode

public DoAvatarPreview ( Rect rect, GUIStyle background ) : void
rect UnityEngine.Rect
background UnityEngine.GUIStyle
Résultat void

DoAvatarPreviewDrag() public méthode

public DoAvatarPreviewDrag ( EventType type ) : void
type EventType
Résultat void

DoAvatarPreviewFrame() public méthode

public DoAvatarPreviewFrame ( Event evt, EventType type, Rect previewRect ) : void
evt UnityEngine.Event
type EventType
previewRect UnityEngine.Rect
Résultat void

DoAvatarPreviewOrbit() public méthode

public DoAvatarPreviewOrbit ( Event evt, Rect previewRect ) : void
evt UnityEngine.Event
previewRect UnityEngine.Rect
Résultat void

DoAvatarPreviewPan() public méthode

public DoAvatarPreviewPan ( Event evt ) : void
evt UnityEngine.Event
Résultat void

DoAvatarPreviewZoom() public méthode

public DoAvatarPreviewZoom ( Event evt, float delta ) : void
evt UnityEngine.Event
delta float
Résultat void

DoPreviewSettings() public méthode

public DoPreviewSettings ( ) : void
Résultat void

DoRenderPreview() public méthode

public DoRenderPreview ( Rect previewRect, GUIStyle background ) : void
previewRect UnityEngine.Rect
background UnityEngine.GUIStyle
Résultat void

DoSelectionChange() public méthode

public DoSelectionChange ( ) : void
Résultat void

FindBestFittingRenderableGameObjectFromModelAsset() public static méthode

public static FindBestFittingRenderableGameObjectFromModelAsset ( Object asset, ModelImporterAnimationType animationType ) : GameObject
asset Object
animationType ModelImporterAnimationType
Résultat UnityEngine.GameObject

GetAnimationType() public static méthode

public static GetAnimationType ( GameObject go ) : ModelImporterAnimationType
go UnityEngine.GameObject
Résultat ModelImporterAnimationType

GetAnimationType() public static méthode

public static GetAnimationType ( Motion motion ) : ModelImporterAnimationType
motion UnityEngine.Motion
Résultat ModelImporterAnimationType

GetCurrentMouseWorldPosition() protected méthode

protected GetCurrentMouseWorldPosition ( Event evt, Rect previewRect ) : Vector3
evt UnityEngine.Event
previewRect UnityEngine.Rect
Résultat Vector3

HandleMouseDown() protected méthode

protected HandleMouseDown ( Event evt, int id, Rect previewRect ) : void
evt UnityEngine.Event
id int
previewRect UnityEngine.Rect
Résultat void

HandleMouseDrag() protected méthode

protected HandleMouseDrag ( Event evt, int id, Rect previewRect ) : void
evt UnityEngine.Event
id int
previewRect UnityEngine.Rect
Résultat void

HandleMouseUp() protected méthode

protected HandleMouseUp ( Event evt, int id ) : void
evt UnityEngine.Event
id int
Résultat void

HandleViewTool() protected méthode

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

IsValidPreviewGameObject() public static méthode

public static IsValidPreviewGameObject ( GameObject target, ModelImporterAnimationType requiredClipType ) : bool
target UnityEngine.GameObject
requiredClipType ModelImporterAnimationType
Résultat bool

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

ResetPreviewInstance() public méthode

public ResetPreviewInstance ( ) : void
Résultat void

Property Details

fps public_oe property

public int fps
Résultat int

m_ViewTool protected_oe property

protected ViewTool m_ViewTool
Résultat ViewTool

timeControl public_oe property

public TimeControl timeControl
Résultat TimeControl