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.PlayableOutput o;
         o = new UnityEngine.Playables.PlayableOutput();
         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
 }
Example #2
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Playables.PlayableOutput o;
         o = new UnityEngine.Playables.PlayableOutput();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #3
0
 static public int op_Implicit_s(IntPtr l)
 {
     try {
         UnityEngine.Audio.AudioPlayableOutput a1;
         checkValueType(l, 1, out a1);
         UnityEngine.Playables.PlayableOutput ret = a1;
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        public PlayableOutput GetOutputByType <T>(int index) where T : struct, IPlayableOutput
        {
            PlayableOutputHandle handle;
            PlayableOutput       result;

            if (!this.GetOutputByTypeInternal(typeof(T), index, out handle))
            {
                result = PlayableOutput.Null;
            }
            else
            {
                result = new PlayableOutput(handle);
            }
            return(result);
        }
        public PlayableOutput GetOutput(int index)
        {
            PlayableOutputHandle handle;
            PlayableOutput       result;

            if (!this.GetOutputInternal(index, out handle))
            {
                result = PlayableOutput.Null;
            }
            else
            {
                result = new PlayableOutput(handle);
            }
            return(result);
        }