Inheritance: UnityEngine.MonoBehaviour
 static public int CheckResources(IntPtr l)
 {
     try {
         UnityStandardAssets.ImageEffects.PostEffectsBase self = (UnityStandardAssets.ImageEffects.PostEffectsBase)checkSelf(l);
         var ret = self.CheckResources();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
        static void Recreate(SceneView sv)
        {
            PostEffectsBase filter;

            while (filter = sv.camera.GetComponent <PostEffectsBase>())
            {
                DestroyImmediate(filter);
            }

            foreach (PostEffectsBase f in Camera.main.GetComponents <PostEffectsBase>())
            {
                PostEffectsBase newFilter = sv.camera.gameObject.AddComponent(f.GetType()) as PostEffectsBase;
                EditorUtility.CopySerialized(f, newFilter);
            }
        }