C# Класс UnityEditor.AvatarPreview

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
fps int
timeControl TimeControl

Защищенные свойства (Protected)

Свойство Тип Описание
m_ViewTool ViewTool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AvatarPreview() публичный метод

public AvatarPreview ( UnityEngine previewObjectInScene, Motion objectOnSameAsset ) : System
previewObjectInScene UnityEngine
objectOnSameAsset UnityEngine.Motion
Результат System

AvatarTimeControlGUI() публичный метод

public AvatarTimeControlGUI ( Rect rect ) : void
rect UnityEngine.Rect
Результат void

DoAvatarPreview() публичный метод

public DoAvatarPreview ( Rect rect, GUIStyle background ) : void
rect UnityEngine.Rect
background UnityEngine.GUIStyle
Результат void

DoAvatarPreviewDrag() публичный метод

public DoAvatarPreviewDrag ( EventType type ) : void
type EventType
Результат void

DoAvatarPreviewFrame() публичный метод

public DoAvatarPreviewFrame ( Event evt, EventType type, Rect previewRect ) : void
evt UnityEngine.Event
type EventType
previewRect UnityEngine.Rect
Результат void

DoAvatarPreviewOrbit() публичный метод

public DoAvatarPreviewOrbit ( Event evt, Rect previewRect ) : void
evt UnityEngine.Event
previewRect UnityEngine.Rect
Результат void

DoAvatarPreviewPan() публичный метод

public DoAvatarPreviewPan ( Event evt ) : void
evt UnityEngine.Event
Результат void

DoAvatarPreviewZoom() публичный метод

public DoAvatarPreviewZoom ( Event evt, float delta ) : void
evt UnityEngine.Event
delta float
Результат void

DoPreviewSettings() публичный метод

public DoPreviewSettings ( ) : void
Результат void

DoRenderPreview() публичный метод

public DoRenderPreview ( Rect previewRect, GUIStyle background ) : void
previewRect UnityEngine.Rect
background UnityEngine.GUIStyle
Результат void

DoSelectionChange() публичный метод

public DoSelectionChange ( ) : void
Результат void

FindBestFittingRenderableGameObjectFromModelAsset() публичный статический метод

public static FindBestFittingRenderableGameObjectFromModelAsset ( Object asset, ModelImporterAnimationType animationType ) : GameObject
asset Object
animationType ModelImporterAnimationType
Результат UnityEngine.GameObject

GetAnimationType() публичный статический метод

public static GetAnimationType ( GameObject go ) : ModelImporterAnimationType
go UnityEngine.GameObject
Результат ModelImporterAnimationType

GetAnimationType() публичный статический метод

public static GetAnimationType ( Motion motion ) : ModelImporterAnimationType
motion UnityEngine.Motion
Результат ModelImporterAnimationType

GetCurrentMouseWorldPosition() защищенный метод

protected GetCurrentMouseWorldPosition ( Event evt, Rect previewRect ) : Vector3
evt UnityEngine.Event
previewRect UnityEngine.Rect
Результат Vector3

HandleMouseDown() защищенный метод

protected HandleMouseDown ( Event evt, int id, Rect previewRect ) : void
evt UnityEngine.Event
id int
previewRect UnityEngine.Rect
Результат void

HandleMouseDrag() защищенный метод

protected HandleMouseDrag ( Event evt, int id, Rect previewRect ) : void
evt UnityEngine.Event
id int
previewRect UnityEngine.Rect
Результат void

HandleMouseUp() защищенный метод

protected HandleMouseUp ( Event evt, int id ) : void
evt UnityEngine.Event
id int
Результат void

HandleViewTool() защищенный метод

protected HandleViewTool ( Event evt, EventType eventType, int id, Rect previewRect ) : void
evt UnityEngine.Event
eventType EventType
id int
previewRect UnityEngine.Rect
Результат void

IsValidPreviewGameObject() публичный статический метод

public static IsValidPreviewGameObject ( GameObject target, ModelImporterAnimationType requiredClipType ) : bool
target UnityEngine.GameObject
requiredClipType ModelImporterAnimationType
Результат bool

OnDestroy() публичный метод

public OnDestroy ( ) : void
Результат void

ResetPreviewInstance() публичный метод

public ResetPreviewInstance ( ) : void
Результат void

Описание свойств

fps публичное свойство

public int fps
Результат int

m_ViewTool защищенное свойство

protected ViewTool m_ViewTool
Результат ViewTool

timeControl публичное свойство

public TimeControl timeControl
Результат TimeControl