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.ScriptPlayableOutput o;
         o = new UnityEngine.Playables.ScriptPlayableOutput();
         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
 }
Esempio n. 2
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Playables.ScriptPlayableOutput o;
         o = new UnityEngine.Playables.ScriptPlayableOutput();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 3
0
        public static ScriptPlayableOutput Create(PlayableGraph graph, string name)
        {
            PlayableOutputHandle handle;
            ScriptPlayableOutput result;

            if (!PlayableGraph.CreateScriptOutputInternal(ref graph, name, out handle))
            {
                result = ScriptPlayableOutput.Null;
            }
            else
            {
                result = new ScriptPlayableOutput(handle);
            }
            return(result);
        }
 private static PlayableOutput CreateScriptOutput(PlayableGraph graph, string name)
 {
     return(ScriptPlayableOutput.Create(graph, name));
 }