文档

Unity Engine

Unity Engine

current

The camera we are currently rendering with, for low-level render control only (Read Only).
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Camera current { get; }

Remarks

Most of the time you will want to use Camera.main instead. Use this function only when implementing one of the following events: MonoBehaviour.OnRenderImage(RenderTexture, RenderTexture), MonoBehaviour.OnPreRender(), MonoBehaviour.OnPostRender().