forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAnimationMode.cs
More file actions
42 lines (42 loc) · 1.59 KB
/
Copy pathAnimationMode.cs
File metadata and controls
42 lines (42 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Runtime.CompilerServices;
using UnityEngine;
namespace UnityEditor
{
public sealed class AnimationMode
{
private static Color s_AnimatedPropertyColorLight = new Color(1f, 0.65f, 0.6f, 1f);
private static Color s_AnimatedPropertyColorDark = new Color(1f, 0.55f, 0.5f, 1f);
public static Color animatedPropertyColor
{
get
{
return (!EditorGUIUtility.isProSkin) ? AnimationMode.s_AnimatedPropertyColorLight : AnimationMode.s_AnimatedPropertyColorDark;
}
}
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern bool IsPropertyAnimated(UnityEngine.Object target, string propertyPath);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void StopAnimationMode();
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern bool InAnimationMode();
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void StartAnimationMode();
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void BeginSampling();
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void EndSampling();
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void SampleAnimationClip(GameObject gameObject, AnimationClip clip, float time);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void AddPropertyModification(EditorCurveBinding binding, PropertyModification modification, bool keepPrefabOverride);
}
}