Summary
[Editor-Only] Manages the selection and instantiation of models for previewing animations.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor .Previews - Interfaces
-
- IDisposable
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IDisposable"]
Type["AnimancerPreviewObject"]
class Type type-node
Syntax
[Serializable]
public class AnimancerPreviewObject : IDisposable
Attributes
| Type | Description |
|---|---|
| Serializable |
Properties
| Name | Value | Summary |
|---|---|---|
| EventHandler | Animancer |
An optional listener for this object's events.
|
| Graph | AnimancerGraph |
The
Animancer.AnimancerGraph being used for the preview. |
| InstanceAnimators | Animator[] |
The
UnityEngine.Animators on the Animancer.Editor.Previews.AnimancerPreviewObject.InstanceObject and its children. |
| InstanceBounds | Bounds |
The bounds of the
Animancer.Editor.Previews.AnimancerPreviewObject.InstanceObject. |
| InstanceObject | Transform |
The preview copy of the
Animancer.Editor.Previews.AnimancerPreviewObject.OriginalObject. |
| InstanceRoot | Transform |
The object to instantiate the
Animancer.Editor.Previews.AnimancerPreviewObject.InstanceObject under. |
| OriginalObject | Transform |
[
UnityEngine.SerializeField]
The original model which was instantiated to create the Animancer.Editor.Previews.AnimancerPreviewObject.InstanceObject.
|
| Selected |
Animator |
The
UnityEngine.Animator component currently being used for the preview. |
| SelectedInstanceType | AnimationType |
The type of the
Animancer.Editor.Previews.AnimancerPreviewObject.SelectedInstanceAnimator. |
Methods
| Name | Value | Summary |
|---|---|---|
| CreateEmpty |
GameObject |
Creates an object using
UnityEngine.HideFlags.HideAndDontSave
without UnityEngine.HideFlags.NotEditable.
static
|
| Destroy |
void |
Destroys the
Animancer.Editor.Previews.AnimancerPreviewObject.InstanceObject. |
| Dispose |
void |
Cleans up this preview.
|
| Initialize |
Animancer |
Creates a new
Animancer.Editor.Previews.AnimancerPreviewObject
and calls Animancer.Editor.Previews.AnimancerPreviewObject.Initialize(UnityEngine.Transform).
static
|
| Initialize |
void |
Sets the
Animancer.Editor.Previews.AnimancerPreviewObject.InstanceRoot for this preview to work under. |
| SetSelectedAnimator |
void |
Sets the
Animancer.Editor.Previews.AnimancerPreviewObject.SelectedInstanceAnimator. |
| TrySelectBestModel |
void |
Calls
Animancer.Editor.Previews.TransitionPreviewSettings.TrySelectBestModel(System.Object,UnityEngine.Transform)
if there is no Animancer.Editor.Previews.AnimancerPreviewObject.OriginalObject yet.
|