Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp-firstpass/RootMotion/Baker.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

251 lines
8.0 KiB
C#

using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.Playables;
namespace RootMotion
{
// Token: 0x02000011 RID: 17
[Token(Token = "0x2000010")]
[HelpURL("http://www.root-motion.com/finalikdox/html/page3.html")]
[AddComponentMenu("Scripts/RootMotion/Baker")]
public abstract class Baker : MonoBehaviour
{
// Token: 0x06000020 RID: 32 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000020")]
[Address(RVA = "0x2A523B0", Offset = "0x2A511B0", VA = "0x182A523B0")]
[ContextMenu("User Manual")]
private void OpenUserManual()
{
}
// Token: 0x06000021 RID: 33 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000021")]
[Address(RVA = "0x2A52370", Offset = "0x2A51170", VA = "0x182A52370")]
[ContextMenu("Scrpt Reference")]
private void OpenScriptReference()
{
}
// Token: 0x06000022 RID: 34 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000022")]
[Address(RVA = "0x2A523F0", Offset = "0x2A511F0", VA = "0x182A523F0")]
[ContextMenu("Support Group")]
private void SupportGroup()
{
}
// Token: 0x06000023 RID: 35 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000023")]
[Address(RVA = "0x2A52330", Offset = "0x2A51130", VA = "0x182A52330")]
[ContextMenu("Asset Store Thread")]
private void ASThread()
{
}
// Token: 0x17000010 RID: 16
// (get) Token: 0x06000024 RID: 36 RVA: 0x00002148 File Offset: 0x00000348
// (set) Token: 0x06000025 RID: 37 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000010")]
public bool isBaking
{
[Token(Token = "0x6000024")]
[Address(RVA = "0x40FFA0", Offset = "0x40EDA0", VA = "0x18040FFA0")]
[CompilerGenerated]
get
{
return default(bool);
}
[Token(Token = "0x6000025")]
[Address(RVA = "0x410010", Offset = "0x40EE10", VA = "0x180410010")]
[CompilerGenerated]
private set
{
}
}
// Token: 0x17000011 RID: 17
// (get) Token: 0x06000026 RID: 38 RVA: 0x00002160 File Offset: 0x00000360
// (set) Token: 0x06000027 RID: 39 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000011")]
public float bakingProgress
{
[Token(Token = "0x6000026")]
[Address(RVA = "0x9FDE90", Offset = "0x9FCC90", VA = "0x1809FDE90")]
[CompilerGenerated]
get
{
return 0f;
}
[Token(Token = "0x6000027")]
[Address(RVA = "0x2A524C0", Offset = "0x2A512C0", VA = "0x182A524C0")]
[CompilerGenerated]
private set
{
}
}
// Token: 0x06000028 RID: 40
[Token(Token = "0x6000028")]
[Address(Slot = "4")]
protected abstract Transform GetCharacterRoot();
// Token: 0x06000029 RID: 41
[Token(Token = "0x6000029")]
[Address(Slot = "5")]
protected abstract void OnStartBaking();
// Token: 0x0600002A RID: 42
[Token(Token = "0x600002A")]
[Address(Slot = "6")]
protected abstract void OnSetLoopFrame(float time);
// Token: 0x0600002B RID: 43
[Token(Token = "0x600002B")]
[Address(Slot = "7")]
protected abstract void OnSetCurves(ref AnimationClip clip);
// Token: 0x0600002C RID: 44
[Token(Token = "0x600002C")]
[Address(Slot = "8")]
protected abstract void OnSetKeyframes(float time, bool lastFrame);
// Token: 0x17000012 RID: 18
// (get) Token: 0x0600002D RID: 45 RVA: 0x00002178 File Offset: 0x00000378
// (set) Token: 0x0600002E RID: 46 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000012")]
private protected float clipLength
{
[Token(Token = "0x600002D")]
[Address(RVA = "0x7A04F0", Offset = "0x79F2F0", VA = "0x1807A04F0")]
[CompilerGenerated]
protected get
{
return 0f;
}
[Token(Token = "0x600002E")]
[Address(RVA = "0x731D80", Offset = "0x730B80", VA = "0x180731D80")]
[CompilerGenerated]
private set
{
}
}
// Token: 0x0600002F RID: 47 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600002F")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
public void BakeClip()
{
}
// Token: 0x06000030 RID: 48 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000030")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
public void StartBaking()
{
}
// Token: 0x06000031 RID: 49 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000031")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
public void StopBaking()
{
}
// Token: 0x06000032 RID: 50 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000032")]
[Address(RVA = "0x2A52430", Offset = "0x2A51230", VA = "0x182A52430")]
protected Baker()
{
}
// Token: 0x0400004F RID: 79
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400002C")]
[Tooltip("In AnimationClips, AnimationStates or PlayableDirector mode - the frame rate at which the animation clip will be sampled. In Realtime mode - the frame rate at which the pose will be sampled. With the latter, the frame rate is not guaranteed if the player is not able to reach it.")]
[Range(1f, 90f)]
public int frameRate;
// Token: 0x04000050 RID: 80
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x400002D")]
[Tooltip("Maximum allowed error for keyframe reduction.")]
[Range(0f, 0.1f)]
public float keyReductionError;
// Token: 0x04000051 RID: 81
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400002E")]
[Tooltip("AnimationClips mode can be used to bake a batch of AnimationClips directly without the need of setting up an AnimatorController. AnimationStates mode is useful for when you need to set up a more complex rig with layers and AvatarMasks in Mecanim. PlayableDirector mode bakes a Timeline. Realtime mode is for continuous baking of gameplay, ragdoll phsysics or PuppetMaster dynamics.")]
public Baker.Mode mode;
// Token: 0x04000052 RID: 82
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400002F")]
[Tooltip("AnimationClips to bake.")]
public AnimationClip[] animationClips;
// Token: 0x04000053 RID: 83
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000030")]
[Tooltip("The name of the AnimationStates to bake (must be on the base layer) in the Animator above (Right-click on this component header and select 'Find Animation States' to have Baker fill those in automatically, required that state names match with the names of the clips used in them).")]
public string[] animationStates;
// Token: 0x04000054 RID: 84
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000031")]
[Tooltip("Sets the baked animation clip to loop time and matches the last frame keys with the first. Note that when overwriting a previously baked clip, AnimationClipSettings will be copied from the existing clip.")]
public bool loop;
// Token: 0x04000055 RID: 85
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000032")]
[Tooltip("The folder to save the baked AnimationClips to.")]
public string saveToFolder;
// Token: 0x04000056 RID: 86
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000033")]
[Tooltip("String that will be added to each clip or animation state name for the saved clip. For example if your animation state/clip names were 'Idle' and 'Walk', then with '_Baked' as Append Name, the Baker will create 'Idle_Baked' and 'Walk_Baked' animation clips.")]
public string appendName;
// Token: 0x04000057 RID: 87
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000034")]
[Tooltip("Name of the created AnimationClip file.")]
public string saveName;
// Token: 0x0400005A RID: 90
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000037")]
[HideInInspector]
public Animator animator;
// Token: 0x0400005B RID: 91
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000038")]
[HideInInspector]
public PlayableDirector director;
// Token: 0x02000012 RID: 18
[Token(Token = "0x20000CF")]
[Serializable]
public enum Mode
{
// Token: 0x0400005E RID: 94
[Token(Token = "0x40005F1")]
AnimationClips,
// Token: 0x0400005F RID: 95
[Token(Token = "0x40005F2")]
AnimationStates,
// Token: 0x04000060 RID: 96
[Token(Token = "0x40005F3")]
PlayableDirector,
// Token: 0x04000061 RID: 97
[Token(Token = "0x40005F4")]
Realtime
}
}
}