看看Unity官网是怎么说的:OnBecameVisible is called when the renderer became visible by any camera.
这意味这挂了有OnBecameVisible或OnBecameInvisible脚本的物体必须有Renderer类型的组件这两个函数才起作用。
这样脚本PivotController里的这两个函数是不起作用的。
这样才起作用。
看看Unity官网是怎么说的:OnBecameVisible is called when the renderer became visible by any camera.
这意味这挂了有OnBecameVisible或OnBecameInvisible脚本的物体必须有Renderer类型的组件这两个函数才起作用。
这样脚本PivotController里的这两个函数是不起作用的。
这样才起作用。