Renderer.OnBecameVisible

Renderer.OnBecameVisible
Renderer.OnBecameInvisible

容易遗忘的两事件

例子:

// Enables the behaviour when it is visible
function OnBecameVisible() {
enabled = true;
}

 
当在摄影机视线内/视线外 时候触发此事件

猜你喜欢

转载自whuthj.iteye.com/blog/1040390