Example #1
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.Playables.PlayableBinding o;
         o = new UnityEngine.Playables.PlayableBinding();
         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
 }
        internal static PlayableBinding CreateInternal(string name, UnityEngine.Object sourceObject, System.Type sourceType, CreateOutputMethod createFunction)
        {
            PlayableBinding pb = new PlayableBinding();

            pb.m_StreamName         = name;
            pb.m_SourceObject       = sourceObject;
            pb.m_SourceBindingType  = sourceType;
            pb.m_CreateOutputMethod = createFunction;
            return(pb);
        }
Example #3
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Playables.PlayableBinding o;
         o = new UnityEngine.Playables.PlayableBinding();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static PlayableBinding Create(string name, UnityEngine.Object key, Type type)
 {
     return(PlayableBinding.CreateInternal(name, key, type, new PlayableBinding.CreateOutputMethod(ScriptPlayableBinding.CreateScriptOutput)));
 }
Example #5
0
 public static PlayableBinding Create(string name, UnityEngine.Object key, System.Type type)
 {
     return(PlayableBinding.CreateInternal(name, key, type, CreateScriptOutput));
 }