MonoBehaviour.OnRenderObject 当渲染物体

function OnRenderObject () : void

Description描述

OnRenderObject is called after camera has rendered the scene.

在相机场景渲染完成后被调用。

This can be used to render your own objects using Graphics.DrawMeshNow or other functions. This function is similar to OnPostRender , except OnRenderObject is called on any object that has a script with the function; no matter if it's attached to a Camera or not.

该函数可以用来渲染你自己的物体,用Graphics.DrawMesh或者其他函数。这个函数类似于OnPostRender,除非OnRenderObject被其他物体用脚本函数调用,否则它是否附于相机都没有关系。

Page last updated: 2011-1-2