image

for(int i = 0; i < slides.Count; i++)
{
    GameObject obj = slides[i] as GameObject;
    Vector3 relativePos = obj.transform.position - camera.transform.position;
    Quaternion rotation = Quaternion.LookRotation(relativePos, camera.transform.up);
    obj.transform.rotation = rotation;
}

This page is auto-translated from /nishio/常にこけらを向かせる using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.