Summary
[Editor-Only] Utility for rendering previews of animated objects.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor .Previews - Interfaces
-
- Animancer
Preview Object .IEventHandler - IDisposable
- Animancer
- 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 |
---|---|
Serializable |
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 | Animancer |
[
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 |
void |
Draws the preview.
|
Drag2D |
Vector2 |
Handles drag input within a given `area`.
static
|