AC.CameraInfoCtrl

AgentComponent_VLabCameraInfoCtrl

  • 获取/设置指定相机参数组件
  • 旧的接口在旧的WIKI中
  • 场景中存在多个相机,每个相机对应一个id

       /// <summary>
      /// 获取相机当前的朝向
      /// </summary>
      /// <param name="id"></param>
      /// <returns>世界方向向量</returns>
      public Vector3 GetCameraLookRotation(int id)
    
      /// <summary>
      /// 获取相机的ClearFlags参数
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public int GetClearFlags(int id)
    
      /// <summary>
      /// 设置相机的ClearFlags参数
      /// </summary>
      /// <param name="id"></param>
      /// <param name="clearFlags"></param>
      public void SetClearFlags(int id, int clearFlags)