Avatar & Camera Basic Setup
This guide covers the basic setup for avatars and cameras.
If you want to use the avatar and camera without detailed adjustments, follow these steps.
⚠️
If you selected the Metaverse when creating the project, these settings are applied by default.
In the PresetScript
script, which is created by default when you start a project, enter the following code:
PresetScript
const camera = WORLD.getObject("MainCamera");
const avatar = REDBRICK.AvatarManager.createDefaultAvatar();
avatar.setDefaultController();
avatar.setFollowingCamera(camera);
![scriptlist](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdefault-setting.0fabfecf.png&w=3840&q=75)
With this setup, the camera will use third-person mode, and the avatar will be the one set on the Redbrick website. For detailed settings on camera properties, FPS mode, TPV mode, etc., please refer to this page.