trouble getting onPreCull to work

I’m having trouble getting onPreCull or onPostRender to work. I’ve got a script attached to my MainCamera that’s been stripped down to just print commands, and it appears they aren’t being called at all (nothing is printing):

using UnityEngine;
using System.Collections;

public class MakeTargetRenderable : MonoBehaviour
{
    void onPreCull() 
    {
        print("onPreCull");
    }

    void onPostRender()
    {
        print("onPostRender");
    }
}

I thought all that was needed for these to be called automatically was for them to be part of a script that’s attached to a camera. Is there anything else I need to do?

Thanks-

I think that function names have to start with capital letter, try replacing onPreCull() with OnPreCull(), and onPostRender() with OnPostRender()

d’Oh!

Thank you, that was it. :slight_smile: