MyWebAR Knowledge Base
Language Eng
Language Eng
  • Knowledge base for MyWebAR developers
  • GETTING STARTED
    • Signing Up
    • Dashboard Overview
    • Editor Overview
  • PLANS AND SUBSCRIPTIONS
    • Free 14-Day Trial
    • Upgrading Your Plan
    • Commercial Plans
    • Plans for Education
  • CREATING WEBAR PROJECTS
    • Project Types
    • Multi-Image Projects (Books)
    • Adding Objects
    • How to add a 3D model from the library of 3D models
    • How to add 3D models from Sketchfab
    • Object Properties
    • Buttons and Actions
    • Video Playback
    • 3D Animations
    • Project Analytics
    • How to make a good trackable image for augmented reality
    • Optimizing And Preparing 3D Models For Loading
    • How to work with plugins
    • How to make AR portal in MyWebAR
    • Video Tutorials
  • WEBAR CUSTOMIZATION
    • Custom WebAR Domain
    • Using External File Server
    • WebAR Embedding
  • PRO EDITOR
    • How the Pro Editor works
      • Interface Description
      • Basic features
    • Current restrictions
      • An Example Of Integration Of A Ready-Made Script
      • Particle Creation In The Pro Editor
      • Working With Video
      • Working With 3D Object Animations
    • Code placement requirements
      • Working With The Camera
      • UI Creation
      • Loading objects using the basic class - loader
    • The Cases
      • Adding Images
      • Lens Flare Effect
Powered by GitBook
On this page
  1. PRO EDITOR
  2. Code placement requirements

Working With The Camera

PreviousCode placement requirementsNextUI Creation

Last updated 3 years ago

The first item on the list of restrictions is working with the cameras.

The editor has an initially built-in camera, that is, the camera is set by default.

But Pro Editor supports direct interaction with the camera. Its properties can be changed, for example, the start position on the screen, fov, and so on.

By changing the properties of the camera, keep in mind that not everything will work in augmented reality in the same way as in the advanced editor.

This is due to the fact that when starting augmented reality, some parameters are set again, so be sure to check all the changes made.

The call to the camera is carried out as follows (an example of calling a camera to the console): console.log(camera);

For the moment, the editor does not support creating a new camera. When you try to do this, you probably will not see any errors, but your scene will not work as expected.