Search Unity

Hidden Overridable Methods?

Discussion in 'Scripting' started by Jonathan Czeck, Jul 9, 2005.

  1. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    In the ReflectionRenderTexture script I'm seeing OnPreCull(), OnPreRender(), and OnPostRender(). Are there any other hidden ones? (I say they're hidden because they are undocumented as far as I can tell.)

    Cheers,
    -Jon
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Thanks for pointing those out.
    I'll add them to the documentation:
    Just checked and the full list:

    OnBecameVisible
    OnBecameInvisible
    (Object became visible/invisble from one or more cameras)

    // Sent to the game object of the camera
    OnPreCull
    OnPostRender
    OnPreRender

    // sent To all game objects
    OnLevelWasLoaded (string name);

    // Sent to the particle system and object you collided with
    OnParticleCollision
     
  3. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    MMm those will be really handy.

    Thanks!
    -Jon