I have developed a unique custom look-controls feature and I am trying to integrate it into the scene using 'setAttribute(componentName, data)', but I'm unsure about what parameters to include. Any suggestions?
Here is my approach:
const skyImage = document.querySelector('#sky') as HTMLImageElement;
const aScene = document.querySelector("a-scene");
if(skyImage.complete){
if(skyImage.width/2 == skyImage.height){
let camera = document.createElement('a-camera');
camera.setAttribute('new-custom-controls', 'true');
aScene.appendChild(camera);
For the custom look-controls, I utilized similar code but limited the rotation to the Y-axis and changed the name to new-custom-controls.