AnimancerPreviewRenderer Class

Summary

[Editor-Only] Utility for rendering previews of animated objects.
Assembly
Animancer.dll
Namespace
Animancer.Editor.Previews
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["AnimancerPreviewObject.IEventHandler"] click Interface0 "/animancer/api/Animancer.Editor.Previews/IEventHandler" Type-.->Interface1["IDisposable"] Type["AnimancerPreviewRenderer"] class Type type-node

Syntax

[Serializable]
public class AnimancerPreviewRenderer : AnimancerPreviewObject.IEventHandler, IDisposable

Remarks

Parts of this class are based on Unity's UnityEditor.MeshPreview.

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
EnvironmentInstance GameObject
An instance of the Animancer.Editor.Previews.TransitionPreviewSettings.SceneEnvironment. A child of the Animancer.Editor.Previews.AnimancerPreviewRenderer.PreviewSceneRoot.
PreviewObject AnimancerPreviewObject
[UnityEngine.SerializeField] The object being previewed.
PreviewSceneRoot Transform
The root object in the preview scene.

Methods

Name Value Summary
Dispose() void
Cleans up this renderer.
DoGUI(Rect, GUIStyle) void
Draws the preview.
Drag2D(Vector2, Rect) Vector2
Handles drag input within a given `area`.
static