public static PropertyStreamHandle BindCustomStreamProperty(this Animator animator, string property, CustomStreamPropertyType type)
        {
            PropertyStreamHandle propertyStreamHandle = new PropertyStreamHandle();

            InternalBindCustomStreamProperty(animator, property, type, out propertyStreamHandle);
            return(propertyStreamHandle);
        }
        public static PropertyStreamHandle BindStreamProperty(this Animator animator, Transform transform, Type type, string property, [DefaultValue("false")] bool isObjectReference)
        {
            PropertyStreamHandle propertyStreamHandle = new PropertyStreamHandle();

            InternalBindStreamProperty(animator, transform, type, property, isObjectReference, out propertyStreamHandle);
            return(propertyStreamHandle);
        }
Exemplo n.º 3
0
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.Animations.PropertyStreamHandle o;
         o = new UnityEngine.Animations.PropertyStreamHandle();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
        public static PropertyStreamHandle BindStreamProperty(this Animator animator, Transform transform, Type type, string property, [DefaultValue("false")] bool isObjectReference)
        {
            PropertyStreamHandle result = default(PropertyStreamHandle);

            AnimatorJobExtensions.InternalBindStreamProperty(animator, transform, type, property, isObjectReference, out result);
            return(result);
        }
        public static PropertyStreamHandle BindCustomStreamProperty(this Animator animator, string property, CustomStreamPropertyType type)
        {
            PropertyStreamHandle result = default(PropertyStreamHandle);

            AnimatorJobExtensions.InternalBindCustomStreamProperty(animator, property, type, out result);
            return(result);
        }
 private static extern int GetIntInternal_Injected(ref PropertyStreamHandle _unity_self, ref AnimationStream stream);
 private static extern void ResolveInternal_Injected(ref PropertyStreamHandle _unity_self, ref AnimationStream stream);
 private bool GetReadMaskInternal(ref AnimationStream stream)
 {
     return(PropertyStreamHandle.GetReadMaskInternal_Injected(ref this, ref stream));
 }
 private void SetBoolInternal(ref AnimationStream stream, bool value)
 {
     PropertyStreamHandle.SetBoolInternal_Injected(ref this, ref stream, value);
 }
 private int GetIntInternal(ref AnimationStream stream)
 {
     return(PropertyStreamHandle.GetIntInternal_Injected(ref this, ref stream));
 }
 private void SetFloatInternal(ref AnimationStream stream, float value)
 {
     PropertyStreamHandle.SetFloatInternal_Injected(ref this, ref stream, value);
 }
 private static extern void InternalBindCustomStreamProperty([NotNull("ArgumentNullException")] Animator animator, [NotNull("ArgumentNullException")] string property, CustomStreamPropertyType propertyType, out PropertyStreamHandle propertyStreamHandle);
 extern private static void InternalBindCustomStreamProperty([NotNull] Animator animator, [NotNull] string property, CustomStreamPropertyType propertyType, out PropertyStreamHandle propertyStreamHandle);
 extern private static void InternalBindStreamProperty([NotNull] Animator animator, [NotNull] Transform transform, [NotNull] Type type, [NotNull] string property, bool isObjectReference, out PropertyStreamHandle propertyStreamHandle);
 private static extern void SetBoolInternal_Injected(ref PropertyStreamHandle _unity_self, ref AnimationStream stream, bool value);
 private void ResolveInternal(ref AnimationStream stream)
 {
     PropertyStreamHandle.ResolveInternal_Injected(ref this, ref stream);
 }
 private static extern bool GetReadMaskInternal_Injected(ref PropertyStreamHandle _unity_self, ref AnimationStream stream);
 private static extern void InternalBindStreamProperty([NotNull("ArgumentNullException")] Animator animator, [NotNull("ArgumentNullException")] Transform transform, [NotNull("ArgumentNullException")] Type type, [NotNull("ArgumentNullException")] string property, bool isObjectReference, out PropertyStreamHandle propertyStreamHandle);