The problem I’m currently facing, is that after the update I cant access multiple cameras.
unity’s Camera.allCameras doesnt work, it only choses the second camera.
my own child method doesnt work either… allcam = GetComponentsInChildren();
Prevously I accesed the cameras like this:
using UnityEngine;
using System.Collections;
public class CameraPost : MonoBehaviour {
private Camera[] allcam;
private AntialiasingAsPostEffect FSAAP;
void Start ()
{
allcam = GetComponentsInChildren<Camera>();
foreach(Camera c in allcam)
{
if (FSAAP == null)
FSAAP = c.gameObject.AddComponent<AntialiasingAsPostEffect>();
}
}
}
This class should add Antialias component to each camera that is a child, but it only adds to the first.