public UAnimationMotionXToDeltaPlayable() { var asmUnityEngine = typeof(UnityEngine.Animations.AnimationClipPlayable).Assembly; Assert.IsNotNull(type = asmUnityEngine.GetType("UnityEngine.Animations.AnimationMotionXToDeltaPlayable")); Assert.IsNotNull(m_m_Handle = type.GetField("m_Handle", BindingFlags.Instance | BindingFlags.NonPublic)); Assert.IsNotNull(m_Create = type.GetMethod("Create", BindingFlags.Public | BindingFlags.Static)); Assert.IsNotNull(m_SetAbsoluteMotion = type.GetMethod("SetAbsoluteMotion")); uPlayable = new UPlayable(); }
public UAnimationOffsetPlayable() { var asmUnityEngine = typeof(UnityEngine.Animations.AnimationClipPlayable).Assembly; Assert.IsNotNull(type = asmUnityEngine.GetType("UnityEngine.Animations.AnimationOffsetPlayable")); Assert.IsNotNull(m_m_Handle = type.GetField("m_Handle", BindingFlags.Instance | BindingFlags.NonPublic)); Assert.IsNotNull(m_Create = type.GetMethod("Create", BindingFlags.Public | BindingFlags.Static)); Assert.IsNotNull(m_SetPosition = type.GetMethod("SetPosition", BindingFlags.Public | BindingFlags.Instance)); Assert.IsNotNull(m_SetRotation = type.GetMethod("SetRotation", BindingFlags.Public | BindingFlags.Instance)); Assert.IsNotNull(m_GetPosition = type.GetMethod("GetPosition", BindingFlags.Public | BindingFlags.Instance)); Assert.IsNotNull(m_GetRotation = type.GetMethod("GetRotation", BindingFlags.Public | BindingFlags.Instance)); uPlayable = new UPlayable(); instance = Activator.CreateInstance(type); }