Simple cam facing question for a smart person with a free second

Hi Folks!
I’m wrapping up an app I’ve built and one of the late additions requested was an effect that needed sprites distributed around the scene that face the camera. Ok done. Got a wonderful script here (thanks so much!) that works great with a single camera. Issue here is that I’ve got 2. An orbit camera, and a FPS cam that you can switch back and forth to. In the code (below) I tried simply swapping “Camera.main” with “Camera.current” but no dice. sprite doesn’t rotate. I was kinda hoping it was that simple.
Any ideas?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LookAtCam : MonoBehaviour
{
    private Camera theCam;


    // Start is called before the first frame update
    void Start()
    {
        theCam = Camera.main;  
// changed this to "Camera.current" but no luck
    }

    // Update is called once per frame
    void LateUpdate()
    {
        transform.LookAt(theCam.transform);

       
    }
}

well found one thing… camera needed the tag “maincamera” to activate. so it works for one camera anyway… still stuck on the second…

Use the OnWillRenderObject callback with Camera.current:

void OnWillRenderObject () {
  transform.LookAt( Camera.current.transform );
}

Your code wouldn’t work because you’re only setting the camera in Start, which is called once. If you switch cameras later the script is still referring to the original camera.