Create, Compete & Win at Redbrick Connect 2024! 🎉
Text codingGet StartedAvatar & camera basic settings

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

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.