// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik // using Animancer.Units; using UnityEngine; namespace Animancer { /// Various string constants used throughout . /// https://kybernetik.com.au/animancer/api/Animancer/Strings /// public static class Strings { /************************************************************************************************************************/ /// The name of this product. public const string ProductName = nameof(Animancer); /// The standard prefix for . public const string MenuPrefix = ProductName + "/"; /// The standard prefix for the asset creation menu (for ). public const string CreateMenuPrefix = "Assets/Create/" + MenuPrefix; /// The standard prefix for for the samples. public const string SamplesMenuPrefix = MenuPrefix + "Samples/"; /// The menu path of the . public const string AnimancerToolsMenuPath = "Window/Animation/Animancer Tools"; /// The menu path of the Animancer settings. public const string AnimancerSettingsPath = "Edit/Project Settings/Animancer"; /// /// The base value for to group /// "Assets/Create/Animancer/..." menu items just under "Avatar Mask". /// public const int AssetMenuOrder = 410; /************************************************************************************************************************/ /// The conditional compilation symbol for Editor-Only code. public const string UnityEditor = "UNITY_EDITOR"; /// The conditional compilation symbol for assertions exists in the Unity Editor and Development Builds. public const string Assertions = "UNITY_ASSERTIONS"; /************************************************************************************************************************/ /// 4 spaces for indentation. public const string Indent = " "; /// A prefix for tooltips on Pro-Only features. /// "[Pro-Only] " in Animancer Lite or "" in Animancer Pro. public const string ProOnlyTag = ""; /// The Assembly name of the pre-compiled Animancer Lite DLL. public const string LiteAssemblyName = "Kybernetik.Animancer.Lite"; /************************************************************************************************************************/ /// An error message for when fails. public const string MustBeFinite = "must not be NaN or Infinity"; /************************************************************************************************************************/ #if UNITY_ASSERTIONS /// [Assert-Only] A message for . public const string AnimatorDisabledMessage = "The " + nameof(Animator) + " is disabled so Animancer won't be able to play animations."; #endif /************************************************************************************************************************/ /// URLs of various documentation pages. /// https://kybernetik.com.au/animancer/api/Animancer/DocsURLs /// public static class DocsURLs { /************************************************************************************************************************/ /// The URL of the website where the Animancer documentation is hosted. public const string Documentation = "https://kybernetik.com.au/animancer"; /// The URL of the website where the Animancer API documentation is hosted. public const string APIDocumentation = Documentation + "/api/" + nameof(Animancer); /// The email address which handles support for Animancer. public const string DeveloperEmail = "animancer@kybernetik.com.au"; /// The URL of the file which lists Animancer's latest version. public const string LatestVersion = Documentation + "/latest-version.txt"; /************************************************************************************************************************/ public const string OptionalWarning = APIDocumentation + "/" + nameof(Animancer.OptionalWarning); /************************************************************************************************************************/ #if UNITY_ASSERTIONS /************************************************************************************************************************/ public const string Docs = Documentation + "/docs/"; public const string AnimancerEvents = Docs + "manual/events/animancer"; public const string EndEvents = Docs + "manual/events/end"; public const string AnimancerEventParameters = AnimancerEvents + "/parameters"; public const string SharedEventSequences = AnimancerEvents + "/shared"; public const string AnimatorControllers = Docs + "manual/animator-controllers"; public const string AnimatorControllersNative = AnimatorControllers + "#native"; public const string Fading = Docs + "manual/blending/fading"; public const string FadeModes = Fading + "/modes"; /************************************************************************************************************************/ #endif /************************************************************************************************************************/ #if UNITY_EDITOR /************************************************************************************************************************/ public const string Samples = Docs + "samples"; public const string UnevenGround = Docs + "samples/ik/uneven-ground"; public const string OdinInspector = Docs + "samples/integration/odin-inspector"; public const string AnimancerTools = Docs + "manual/tools"; public const string PackTextures = AnimancerTools + "/pack-textures"; public const string ModifySprites = AnimancerTools + "/modify-sprites"; public const string RenameSprites = AnimancerTools + "/rename-sprites"; public const string GenerateSpriteAnimations = AnimancerTools + "/generate-sprite-animations"; public const string RemapSpriteAnimation = AnimancerTools + "/remap-sprite-animation"; public const string RemapAnimationBindings = AnimancerTools + "/remap-animation-bindings"; public const string Inspector = Docs + "manual/playing/inspector"; public const string States = Docs + "manual/playing/states"; public const string Layers = Docs + "manual/blending/layers"; public const string Parameters = Docs + "manual/parameters"; public const string TransitionPreviews = Docs + "manual/transitions/previews"; public const string TransitionLibraries = Docs + "manual/transitions/libraries"; public const string UpdateModes = Docs + "bugs/update-modes"; public const string VersionName = "v8.0.2"; public const string ChangeLogURL = Docs + "changes/animancer-v8-0"; public const string UpgradeGuideURL = ChangeLogURL + "/upgrade-guide"; public const string Discussions = "https://discussions.unity.com/t/animancer-less-animator-controller-more-animator-control/717489/99999"; public const string Issues = "https://github.com/KybernetikGames/animancer/issues"; /************************************************************************************************************************/ #endif /************************************************************************************************************************/ } /************************************************************************************************************************/ /// Tooltips for various fields. /// https://kybernetik.com.au/animancer/api/Animancer/Tooltips /// public static class Tooltips { /************************************************************************************************************************/ public const string MiddleClickReset = "\n• Middle Click = reset to default value"; public const string FadeDuration = ProOnlyTag + "The amount of time the transition will take, e.g:" + "\n• 0s = Instant" + "\n• 0.25s = quarter of a second (Default)" + "\n• 0.25x = quarter of the animation length" + "\n• " + AnimationTimeAttribute.Tooltip + MiddleClickReset; public const string Speed = ProOnlyTag + "How fast the animation will play, e.g:" + "\n• 0x = paused" + "\n• 1x = normal speed" + "\n• -2x = double speed backwards"; public const string OptionalSpeed = Speed + "\n• Disabled = continue at current speed" + MiddleClickReset; public const string SpeedDisabled = "Continue at current speed"; public const string NormalizedStartTime = ProOnlyTag + "• Enabled = use " + nameof(FadeMode) + "." + nameof(FadeMode.FromStart) + " and restart at this time." + "\n• Disabled = use " + nameof(FadeMode) + "." + nameof(FadeMode.FixedSpeed) + " and continue from the current time if already playing." + "\n• " + AnimationTimeAttribute.Tooltip; public const string StartTimeDisabled = "Continue from current time"; public const string EndTime = ProOnlyTag + "The time when the End Callback will be triggered." + "\n• " + AnimationTimeAttribute.Tooltip + "\n\nDisabling the toggle automates the value:" + "\n• Speed >= 0 ends at 1x" + "\n• Speed < 0 ends at 0x"; public const string CallbackTime = ProOnlyTag + "The time when the Event Callback will be triggered." + "\n• " + AnimationTimeAttribute.Tooltip; public const string MixerParameterBinding = "[Optional] The mixer's parameter will be controlled by the Animancer parameter with this name"; /************************************************************************************************************************/ } /************************************************************************************************************************/ } }