AnimancerSettings Class

Summary

[Editor-Only] Persistent settings used by Animancer.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • ScriptableObject
graph BT Type-->Base0["ScriptableObject"] Type["AnimancerSettings"] class Type type-node

Syntax

[HelpURL(Strings.DocsURLs.APIDocumentation + "." + nameof(Editor) + "/" + nameof(AnimancerSettings))]
public class AnimancerSettings : ScriptableObject

Remarks

This asset automatically creates itself when first accessed such as when opening the Animancer.Editor.TransitionPreviewWindow or viewing an Animancer.Units.AnimationTimeAttribute.

The default location is Assets/Plugins/Animancer/Editor, but you can freely move it (and the whole Animancer folder) anywhere in your project.

These settings can also be accessed via the Settings in the Animancer.Editor.Tools.AnimancerToolsWindow (Window/Animation/Animancer Tools).

Attributes

Type Description
HelpURLAttribute

Properties

Name Value Summary
AnimationTimeFields AnimationTimeAttribute.Settings
Settings for the Animancer.Units.AnimationTimeAttribute.
static
FrameStep float
The amount of time that will be added by a single frame step (in seconds).
static
HideEventCallbacks bool
Should Animancer Event Callbacks be hidden in the Inspector?
static
InspectorRepaintInterval float
The amount of time between repaint commands when Animancer.Editor.AnimancerPlayableDrawer.RepaintConstantly is disabled.
static
Instance AnimancerSettings
Loads an existing Animancer.Editor.AnimancerSettings if there is one anywhere in your project, but otherwise creates a new one and saves it in the same folder as this script.
static
NewAnimationFrameRate SerializedProperty
The frame rate to use for new animations.
static
SerializedObject SerializedObject
The UnityEditor.SerializedProperty representing the Animancer.Editor.AnimancerSettings.Instance.
static

Methods

Name Value Summary
OnEnable() void
Initializes the serialized fields.
SetDirty() void
Calls UnityEditor.EditorUtility.SetDirty(UnityEngine.Object) on the Animancer.Editor.AnimancerSettings.Instance.
static